Click here to Skip to main content
15,899,475 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hi,

I would like to replace ASCII separators (GS, FS, US, ...) by normal characters in a text file, How can I do that? I need to traverse the file and replace each one by a specific character.

Regards,
Posted

1 solution

I hope that the whole text is ASCII-coded. In that case, you could look at it as a series of bytes.
Check every byte if it equals one of the separators you wish to replace. Change those you need to change.

If it's something more sophisticated than ASCII, I'm of no help at the moment.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900