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

Using wildcards with SysLibFile.lib

A.Emmerich
2015-10-07
2024-03-13
  • A.Emmerich - 2015-10-07

    Hello,

    I am trying to open (and subsequently write to) a file on SD card using a standard path.
    So instead of:

    FileName:=CONCAT('/media/SA08G_0x4431264e/77616767/Logs/PLC_log',PLC_DATE);
    FileName:=CONCAT(FileName,'.log');
    FileID := SysFileOpen(FileName,'a');
    

    I would like to use something like:

    FileName:=CONCAT('/media/*/*/Logs/PLC_log',PLC_DATE);
    FileName:=CONCAT(FileName,'.log');
    FileID := SysFileOpen(FileName,'a');
    

    Is this at all possible using SysLibFile.lib.
    If not, does anyone know of another library which I may use which provides for this functionality?

    Thanks.

     
  • markl - 2024-03-13

    I don't have an answer but I was wondering if you have found out more about using wildcards in Codesys?

     

Log in to post a comment.