Represents a file on disk. This can be used to read data into variables, or writing data from variables.
Example usage: "FileDemo" and "FpsDemo" sample projects.
The name of the file that will be opened, in a path relative to the current project. Examples: "Data.txt", "levels\Level"
The name of a property that will have its value appended to the FileName. The value is rounded to the nearest integer. For example if FileName is "LevelMap" and FileNameFloatRef is set to a variable named "LevelNr" with a value of 5 then the file opened will be "LevelMap5".
Embed a file into your project so that you only need to redistribute the exe-file alone. If this property is set then FileName and FileNameFloatRef properties are ignored.
Controls how data will be parsed when reading from the file.
- Char: One byte is read at a time. The value read is an integer between 0 and 255 (the ascii-value of the character in a text file).
- Binary: Four bytes is read at a time. This can be used to read variables with the full decimal precision.
Set this to an array that the data will be written to or read from.
Size of the file. This is set when FileAction Read is executed.
Current read/write position in the file.