[Tutor] comment stripper script

Alan Gauld alan.gauld at blueyonder.co.uk
Sun Jan 25 19:29:17 EST 2004


> following script, which i wrote, and, well, doesn't work. It is
> supposed to make a new file with just the 'legit' lines in it, but
this
> seems to give me the original file with no changes. hmmm...

Have you tried a print statement every time you find a comment?
I suspect the search isn't finding the comment markers for
some reason... Maybe they aren't the first character in the line?

I dunno, its late and I just scanned it. Also there's no
indentation showing up so I gave up. But its a guess...

Alan G.




More information about the Tutor mailing list