25.12.2013, 00:39
There's no easy way to do something like that. Pawn's default file functions can't "insert" or "remove" characters in between. By default each character in the text file is fixed to its position in the file. For example if the T of "Test3" is the 15th character in the file, you can only move it to the 8th place by rewriting the whole file from the 7th place until the end of the file. Otherwise you would keep the gap of 7 other characters in between, because you removed the info there while the next line is still positioned at the 15th spot. Furthermore, if you want to write 10 characters in that gap, it would overwrite some characters of the next line.
I hope it's a clear answer, I don't really know how to describe it otherwise.
I hope it's a clear answer, I don't really know how to describe it otherwise.