Re: newbe q.: How to read windows path names from a file ?
- From: Paul Whitfield <NoSpam@xxxxxxxxxxxx>
- Date: Fri, 31 Mar 2006 15:37:09 +0800
Damian wrote:
hi group!
I'm trying to [get $channel line] from a file containing lines with
something like "c:\Program files\file.ext". after successful reading
$line variable obviously contains "c:Program filesfile.ext". I'd like
to have "c:/Program files/file.ext" instead (maybe after a string
replacement). How to use "gets" to read a line and to read it without
treating "\" character as a special character or with on-the-fly
conversion to "/" character?
NO NO NO ... gets does no such thing!
gets $channel line
set converted [ file normalize $line ]
Should convert the file to have "/" characters
Paul
.
- References:
- Prev by Date: newbe q.: How to read windows path names from a file ?
- Next by Date: Re: TkDND: Tk and drag n' drop - Help in improving it...
- Previous by thread: newbe q.: How to read windows path names from a file ?
- Next by thread: Re: newbe q.: How to read windows path names from a file ?
- Index(es):
Relevant Pages
|