andrej - 2023-10-24

Hello all,
I would like to store some data in text file. I use the soft PLC Win V3x64, on Windows 10. I use the SysFile Library 3.5.17.0.

If I store the file directly in the in the directory of the PLC i.e. in '/CODESYSControlWinV3x64/E1FA7ABE/PlcLogic/LogAU.txt' the file is correctly filled with the data.
However, If I use an absolute path to a different directory no data is stored in the respective file. Despite the fact that the respective file exists and the Filehandler is correctly opened (see in picture _fdSysFHandle <> -1).

 // sFileName : STRING := 'LogAU.txt';   // STORES FILE IN ../CODESYSControlWinV3x64/../PlcLogic/LogAU.txt'
 sFileName : STRING := 'C/Temp/LogAU.txt'// DOES NOT WORK
---------------------
    // FILE DESCRIPTOR
    _fdSysFHandle   := SysFile.SysFileOpen( szFile:= sFileName,am:= SysFile.AM_APPEND,pResult := ADR(_Result));

Does some have an idea where the problem is, resp. how I can get store a file in an arbitrary directory.

Thanks a lot and kind regards
Andreas