little program, help needed
I need a small program, and I'm stuck.
The program should read in an entire file and remove everything between two control phrases (including the control phrases). It should then write the result to a new file.
The control phrases are:
//!!COMMENT marks the start
ENDCOMMENT!!// marks the end
Th program should be a console app called like this:
program srcfile dstfile
Is there anything available or has anybody got tips for me?
How do you get the file length? How do you edit the puffer?
Thx in advance
All the buzzt
CornedBee