3 ms·
it opens up two file handles, reads from the first and writes to the second.
by arbitrage 6y ago
it opens up two file handles, reads from the first and writes to the second.
- tumetab1 6y agoThat doesn't fully explain it but I think I got it, each line is overwritten with what it's place on the 300th line after. Something like readLineOffset = 301 writeLineOffset = 1 While not read eof line = Read(readLineOffset) Write(WriteLineOffset, line) readLineOffset ++ writeLineOffset ++
- ComodoHacker 6y agodd reads and writes in blocks of bytes, not lines. You have to figure out where 300th line starts beforehand.