Hi,
I have noticed that if I do the following in windows:
open a file that contains a directory name like:
C:\MyDocuments\Programming\TclTkwith
while {[gets $fd l] != -1} {
# only take the first column & store in a list
set swdirlist($nbdir) [lindex $l 0]
set nbdir [expr $nbdir+1]
in swdirlist I get C:MyDocumentsProgrammingTclTk without the slashes, I could modify the input file and add a "/" in front of each "\" but this would not work in UNIX.. How can I get around this?
Thanks!
I have noticed that if I do the following in windows:
open a file that contains a directory name like:
C:\MyDocuments\Programming\TclTkwith
while {[gets $fd l] != -1} {
# only take the first column & store in a list
set swdirlist($nbdir) [lindex $l 0]
set nbdir [expr $nbdir+1]
in swdirlist I get C:MyDocumentsProgrammingTclTk without the slashes, I could modify the input file and add a "/" in front of each "\" but this would not work in UNIX.. How can I get around this?
Thanks!