Error on FileSeek

 

Run this code and look at log.

void OnStart()
  {
   int fh=FileOpen("Test.txt",FILE_READ|FILE_WRITE|FILE_TXT);
   FileWriteString(fh,"abcdef",6);
   Print(FileTell(fh));
   FileSeek(fh,-1,SEEK_SET);
   Print("GLE",GetLastError());
   Print(FileTell(fh));
  }
 
dudufx  :

Run this code and look at log.



FileSeek(fh,-1,SEEK_SET)  sets the pointer to one before the beginning of the file, so results would be expected to be undefined

 
Thank you for your message, we are going to check it.