Example #1
0
 public AFile()
     : base(ofsType.File)
 {
     _fullPath = null;
     _name = null;
     _data = new Data();
     lastWriteDate = loadDate.initialDate();
 }
Example #2
0
        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;
        }