File Tools Function Blocks
This section documents function blocks that can be applied to files.
Fucnction Block |
|
Use |
---|---|---|
FileClose | F_CLOSE | Close an open file |
FileCopy | F_COPY | Copy a file |
FileDelete | F_DELETE | Remove a file |
FileEOF | F_EOF | Test if the end of the file is reached in a file that is open for reading |
FileExists | F_EXIST | Test if a file exists |
FileOpenA | F_AOPEN | Create or open a file in append mode |
FileOpenR | F_ROPEN | Open a file for reading |
FileOpenW | F_WOPEN | Create or reset a file and open it for writing |
FileReadBinData | FA_READ FB_READ |
Read binary data from a file |
FileReadLine | FM_READ | Read a string value from a text file |
FileRename | F_RENAME | Rename a file |
FileSeek | F_SEEK | Set the current position of a file |
FileSize | F_GETSIZE | Get the size of a file |
FileWriteBinData | FA_WRITE FB_WRITE |
Write binary data to a file |
FileWriteLine | FM_WRITE | Write a string value to a text file |