countLines()
From Hack Wars Wiki
| Information for free function countLines() | |
| Function | countLines(string file) |
| API | Attacking, Banking, FTP, Watch, HTTP |
| Description | Returns the number of lines in a file. |
Looping Example
int lines = countLines("file.txt"); int i = 0; string line = ""; while(i<lines) { line = readLine("file.txt", i); i++; } |
With this code you can read each line in a file.
See While Loops
