To correct certain characters combinations in a large ASCII file.(Where a backslash is followed by TAB,EOF,EOL chars, we need to insert an additional space between \ and following character)
Open file for read and file for write
Read char by char - using fgetc()
Look for character combination
Write to output file - using putc()
The file writing is the slowest part. Does anyone know the most efficient way?
Need to write a C program to run on VAX/VMS. Alas, sed or awk not available.
Many thanks in advance!