public AFile() : base(ofsType.File) { _fullPath = null; _name = null; _data = new Data(); lastWriteDate = loadDate.initialDate(); }
public static bool write(Data data, string fullFilePath, bool rewrite = false) { if (!rewrite && fullFilePath.isFileExist()) return false; if (data.isNull) return false; File.WriteAllBytes(fullFilePath, data.data); return true; }