public static void Save(string folderPath, string saveName, FileData.FileType fileType, string saveString, out byte[] fileSaveBytes) { // Save name containing extension string saveFile = folderPath + saveName; Save(saveFile, fileType, saveString, out fileSaveBytes); }
public static void Save(string fullSavePath, FileData.FileType fileType, string saveString, out byte[] fileSaveBytes) { // Save name containing extension string saveFile = fullSavePath; //Compress Save string saveStringCompressed = GetCompressedString(saveString); string header = GetCompressedString(Save_Header(saveStringCompressed)); fileSaveBytes = FileData.Save(fileType, header, saveStringCompressed); File.WriteAllBytes(saveFile, fileSaveBytes); }
public static void Save(string folderPath, string saveName, FileData.FileType fileType, string saveString) { byte[] fileSaveBytes; Save(folderPath, saveName, fileType, saveString, out fileSaveBytes); }