10-25-2024, 05:21 PM
Wouldn't this be as simple as writing a program that
1) read each line one line at a time
2) parse that line from left to right...
2a) Look for quote symbol so you can skip until next quote symbol in case something is like PRINT "Don't each cheese!"
2b) If you're not inside a quite, find the first comment symbol. At that point, you can elimiate it and everything to the right.
3) Write the edited line to a new file called "No Comment " + name$
4) Loop until done
1) read each line one line at a time
2) parse that line from left to right...
2a) Look for quote symbol so you can skip until next quote symbol in case something is like PRINT "Don't each cheese!"
2b) If you're not inside a quite, find the first comment symbol. At that point, you can elimiate it and everything to the right.
3) Write the edited line to a new file called "No Comment " + name$
4) Loop until done