I need to cleanup a ASCII file. With cleanup I mean remove certain characters (#13, #10, ...). At this moment I open the file as ‘file of bytes’. I create a another ‘file of bytes’. I read a character. If the character is in the list I give up, the character is written to the new file, else it will not be written. And so on to the end of the file. It works, but it is very slow (most files are around 2 Mb).
Is there another (faster) way to do this. The cleanup must be correct. So the procedure must be 100 % reliable.
All suggestions are welcome.
Thanks in advance.
PS sorry for my poor english.