Converting strings to ints
Posted: Wed Jul 16, 2008 4:44 pm
Is there any way of converting strings, for example from a comman line input, to ints?
raises:
error: Cannot convert type "string" to "int"
using input = File.openText("A-small.in")
s = input.readline
aNumber = input.readline to int
print aNumber
raises:
error: Cannot convert type "string" to "int"