Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal

TheCyberVerse

Members
  • Content Count

    2
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by TheCyberVerse

  1. I need to get the contents of a file line by line because i am trying to create an open printer program but I'm not sure what to do.

    I have tried:

    while not (file:read("*l") == nil) do
      	openprinter.writeln(file:read("*l"))
    end

    But the file:read("*l") on the second line returned nil.

    Any suggestions?

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.