Jump to content




Expected string, string help


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

#1 mrpoopy345

  • Members
  • 148 posts
  • LocationMy Computer

Posted 31 December 2013 - 10:28 AM

Hello! I have a question
I am getting the error, "expected string, string" on this line:
h = fs.open(user.."pass")
Any help?

#2 CometWolf

  • Members
  • 1,283 posts

Posted 31 December 2013 - 10:51 AM

You forgot to specify what mode fs should open the file in.
http://computercraft.info/wiki/Fs.open

#3 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 31 December 2013 - 10:51 AM

fs.open() indeed requires not one, but two strings - a file and a mode.

Edit: lol.

Edited by Bomb Bloke, 31 December 2013 - 10:51 AM.


#4 mrpoopy345

  • Members
  • 148 posts
  • LocationMy Computer

Posted 31 December 2013 - 11:17 AM

*facepalm*
Thanks





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users