parseInt()
From Hack Wars Wiki
| Information for free function parseInt() | |
| Function | parseInt(string s) |
| API | Attacking, Banking, FTP, Watch, HTTP, Challenges, Hacktendo |
| Description | Attempts to parse an integer value from the string provided. |
Watch Script Example
The following code will take a string and use it as an int.
string ip=readLine("test.txt",0); string port=readLine("test.txt",1); attack(2,ip, parseInt(port)); |
