Hi all,
I'm having a problem with the gets command. I'm generating a dos directory listing from a text file that is generated by my program on the fly. My problem is when I say [gets $dos_text_file] when it reads a line such as c:\temp\test it automatically treats the \ as an escape character, so what the program sees is "c: emp est". What is the trick with gets to disable command processing? I tried variations like {[gets $dos_text_file]}, "[gets $dos_text_file]", ([gets $dos_text_file])... etc but none of them worked. Has anyone experienced this problem? I would think its common, and I'm sure its a simple solution I overlooked somewhere. Please advise.
I'm having a problem with the gets command. I'm generating a dos directory listing from a text file that is generated by my program on the fly. My problem is when I say [gets $dos_text_file] when it reads a line such as c:\temp\test it automatically treats the \ as an escape character, so what the program sees is "c: emp est". What is the trick with gets to disable command processing? I tried variations like {[gets $dos_text_file]}, "[gets $dos_text_file]", ([gets $dos_text_file])... etc but none of them worked. Has anyone experienced this problem? I would think its common, and I'm sure its a simple solution I overlooked somewhere. Please advise.