Re: newbe q.: How to read windows path names from a file ?



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".

There's nothing obvious about that.

When you read data, no substitutions are performed so your \'s will remain intact. gets will _not_ transform the data it reads (other than line endings under certain circumstances)


If you are having the problem you say you are having, show us your actual code, data and results and we'll help you figure it out.

--
Bryan Oakley
http://www.tclscripting.com
.



Relevant Pages