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

Expected string, string help

Started by mrpoopy345, 31 December 2013 - 09:28 AM
mrpoopy345 #1
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?
CometWolf #2
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
Bomb Bloke #3
Posted 31 December 2013 - 10:51 AM
fs.open() indeed requires not one, but two strings - a file and a mode.

Edit: lol.
Edited on 31 December 2013 - 09:51 AM
mrpoopy345 #4
Posted 31 December 2013 - 11:17 AM
*facepalm*
Thanks