Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Delete/Remove All Comments
#4
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
Reply


Messages In This Thread
Delete/Remove All Comments - by Dimster - 10-25-2024, 04:08 PM
RE: Delete/Remove All Comments - by Dimster - 10-25-2024, 05:05 PM
RE: Delete/Remove All Comments - by SMcNeill - 10-25-2024, 05:21 PM
RE: Delete/Remove All Comments - by Pete - 10-25-2024, 10:46 PM
RE: Delete/Remove All Comments - by PhilOfPerth - 10-25-2024, 11:16 PM
RE: Delete/Remove All Comments - by Pete - 10-25-2024, 11:23 PM



Users browsing this thread: 2 Guest(s)