This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
PixelFox's profile picture

file:writeLine() results in "{}" instead of intended result.

Started by PixelFox, 19 August 2015 - 10:27 PM
PixelFox #1
Posted 20 August 2015 - 12:27 AM
My program which I've been working on for a program of mine, ( :P/> It's a secret) you can find here does not like file:writeLine() in general, it just writes "{}" to the file instead of the intended text, could anyone help me, I feel like I did something really wrong xD

Thanks for reading.

-Lightning
Lyqyd #2
Posted 20 August 2015 - 01:01 AM
The io API uses colon notation, the fs API uses dot notation. You're passing the handle table as the thing to write, so it's giving you the brackets. Use file.writeLine instead.
PixelFox #3
Posted 20 August 2015 - 01:02 AM
Thank you :)/>