File open
- From: gtb <goodTweetieBird@xxxxxxxxxxx>
- Date: Tue, 13 May 2008 04:50:53 -0700 (PDT)
Greetings,
I used tcl about 10 years ago and yesterday thought of an ideal
application for it in my current job. I have a long list of comma and
line separated words in a c header file that I need to expand. The
source file is of the form:
parm1,
parm2,
parm3,
The output file should be a c array intiailization series:
{parm1, parm1_src, parm1_dst, "parm1"},
{parm2, parm2_src, parm2_dst, "parm2"},
All my previous tcl work was on Unix or linux systems but last night I
tried it on a PC and could not even get the source file open. The
source file is in the same directory as the script I am sourcing: c:/
Top/tcl/bin/work but I could not open it sourcing this script.
set path [file join c: Top tcl bin work a.txt]
set fid [open $path r]
From the wish window a dir cmd shows the file exists and I could openit from the cmd line. I know there is something funny about Windows
file names but thought file join would take care of it.
So if you could tell me what silly/stupid/ignorant mistake I am making
I would appreciate it.
Thanx,
gtb
.
- Follow-Ups:
- Re: File open
- From: Ralf Fassel
- Re: File open
- From: suchenwi
- Re: File open
- Prev by Date: Re: Tile and toplevel background color
- Next by Date: Re: TCL fork not working when using kernel with NPTL
- Previous by thread: tk_messageBox query
- Next by thread: Re: File open
- Index(es):
Relevant Pages
|