[DOS] removing quotation marks from a file programmatically
- Posted by Dan B Moyer <DANMOYER at PRODIGY.NET> Oct 23, 2000
- 475 views
I'm having a (simple but obscure?) problem removing "quotation marks" from a file, using an altered version of David Cuny's "makedoc.ex". I've been altering David Cuny's "makedoc.ex", which reads through the Win32Lib.exw and creates from it an html help document. I'm altering it to put into a text file Euphoria sequences of all the Win32Lib routines categories ("topics"), routine names, and routine descriptions, so I can then copy them out into my actual program to use to fill combo boxes with them. This process almost completely works, except for a problem with "quotation marks" in the original file getting carried into my sequences and messing things up. Some of the DESCRIPTIONS of routines (specifically the "Dialog" descriptions) have some words in them which are "quoted", and when those descriptions get put into my sequences, they end up with "double quotation marks", which my program then hiccups on (example: constant DialogsStuff = {{ "getColorDialog( window, default color )", ""Get Color" Dialog " },....}); the quotes around ""Get Color" are the problem. Now of course I could simply remove those quotes manually, but that defeats the purpose of the program doing the work for me. So I tried to remove the quotation marks programmatically, but couldn't figure out how. I can see that there are essentially two different places I could possibly do so, on the *input* as the Win32Lib is parsed, or on the *output* as the results are written out to a file. I think I found the relevant place in the *input*, in the "replaceTags" function, because that is what seems to handle the routine *descriptions* (/desc tag), but I can't figure out what to even *try* there. So I looked at the *output* side, which seems to be in the "main" section, approximately at " -- gather a list of all routines under this topic", but nothing I tried worked there. Maybe David or Derek or someone skilled with DOS Euphoria could help me with this? Dan Moyer