Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

File Access Problem

yue-qi-qi
2013-10-23
2013-10-23
  • yue-qi-qi - 2013-10-23

    I meet a problem when I use the File Access 3.4.1.0 library to operate file access.
    fbFileOpen:FILE_ACCESS.FILE.Open;
    fbFileOpen(xExecute:=TRUE,sFileName:=strFileName,eFileMode:=FILE_ACCESS.FILE.MODE.MWRITE,xExclusive:=FALSE);
    after fbFileOpen() executed,the content of the file that the function block open will be cleard! And the size of the file will be 0!

     
  • TimvH

    TimvH - 2013-10-23

    Use append or read_write mode to open the file.
    PS, this item should not be in the Python scripting forum, but in the general V3 forum.

     

Log in to post a comment.