5165/Tanel's ... Problem "RollBacks"
Anybody has a fix for this?
If he does , I Promisse its my last request/begging. :D :D
Anybody has a fix for this?
If he does , I Promisse its my last request/begging. :D :D
You do realize, this is for a source written in c# right?Quote:
While this is obviously inefficient (due to having to reopen files constantly) it's possible.Code:FILE* file = fopen(fname, "rb+"); fseek(file, FIELD_OFFSET, SEEK_SET); fwrite(&value, 1, sizeof(value), file); fclose(file);
// using System.IO;
FileStream fs = new FileStream("c:\\file.bin", FileMode.Open, FileAccess.ReadWrite);
BinaryWriter wrtr = new BinaryWriter(fs, Encoding.ASCII);
wrtr.BaseStream.Seek(OFFSET, SeekOrigin.Begin);
wrtr.Write(value);
wrtr.Close();