I was just starting to add a feature to my instrument that requires me to save information in a file and then read it when the instrument starts. Here's the code:
Code: Select all
-- Open a file for read and test that it worked.
fh, err = io.open("E:AircraftVSpeeds.txt")
--
if (err) then
print("OOPS"); return; end
--
-- line by line.
--
line = fh:read()
if line ~= nil then
print (line)
end
--
fh:close()
Any help would be most appreciated.
Sparky