Closed kfpopeye closed 9 months ago
I've found file:read(999)
works but file:read('a')
returns an empty string.
This kinda intended behaviour since the string parameter can be fully implemented within lua, and due to some design choices file handles work like UNIX File Handles... you can check the FicsIt-OS or on the Discord check #your-resources to figure out how to use them properly
I have this function creating text files:
I checked the written files and the look correct. See below:
and this function to read the data if the computer restarts;
However the print(vehFile:read()) lines only print blank lines. Can't tell what I'm doing wrong.