Are you familiar with the c language? The compiler is gcc or g++ for c++. Say you had a hello.c file, to compile you would type: 'gcc hello.c'. This will produce the executable file 'a.out'. To run it, type: './a.out'.
Hope this would help des12...try scanning the file char by char...i mean read the file character by character and write it to a new file...check if the character is '/'...
Case 1 : if the next character is '*' then don't dont write characters that follow till you encounter a '*' followed by '/'
Case 2 : if the next character is '/' then don't write characters that follow till you encounter a new line character '\n'
At last remove the original file and rename the new file
Think you wont need any code
Regards
Ekanth Treat the daily build of a project as the heartbeat of the project. If there's no heartbeat the project is dead.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.