iolanguage - Io Language: Exception: Sequence does not respond to 'openForReading' -
I read "seven languages" in seven weeks.
On the Io charpter, I failed with the following example exception. OperationTableAddinOperator (":", "atPutNumber") curly brackets: = method (R: = map clone call message logic foreach (arg, r doMessage (ARG)) R.
) Put the map on the map: = Method (remove "\"), the appropriate printfix ("\"), the call evalArgAt (1)), mountable (call on the self (call as "Evil Egret" (0) s: = file ("Phonebook.txt" openForReading content) Phone number: = doString (s) phone number key println phone points printlnphonebook.txt
{"Bob Smith": Troubleshooting message: Exception: 'OpenForReading' does not answer --- ------- Seacons Unfold readings Phonebook.O with 16 file- phonebook.io 16CLI doFile Z_CLI .io 140 - Run CLI IoState_runCLI () 1
Phonebook.io and phonebook.txt in the same folder.
< "Post-text" itemprop = "text"> Compare the code line from the line, file with the following line
s: = ("phonebook.txt" openForReading content) / Code> should be correct as: s: = with file ("phonebook.txt") openForReading content
On the last job as expected:
$> io phonebook.io
Listings (Mary Walsh, Bob Smith)
5678, 12345)
Comments
Post a Comment