Jump to content




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


  • You cannot reply to this topic
2 replies to this topic

#1 PixelFox

  • Members
  • 106 posts

Posted 19 August 2015 - 11:27 PM

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

#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 20 August 2015 - 12: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.

#3 PixelFox

  • Members
  • 106 posts

Posted 20 August 2015 - 12:02 AM

Thank you :)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users