[GiDlist] Re: write file problem
Posted: Fri Jan 17, 2003 9:36 pm
Hi GiD staff,
I'm working on a *.tcl file and I'm trying to write a file into the
problemtype folder. Here my line of code:
...
set fid [open /Programs/GidWin6.3.0b/problemtypes/FEM.gid/$projname.par w]
puts $fid [ ... ]
close $fid
...
For some reason it keeps appending "My current GiD project directory" at
the end of "My desired directory". Why? Is there a way to write a file
into a different directory? My current GiD project is at
d:\programs\GiDWin6.3.0b. Here is a screen capture of my error box.
Pls advice, thanks!
Tom
1606ee58.jpg
Thomas Chan
R&D Engineer
EMAG Technologies, Inc.
www.emagtechnologies.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20030117/d3d95045/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1606ee58.jpg
Type: image/jpeg
Size: 39883 bytes
Desc: not available
Url : http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20030117/d3d95045/attachment.jpg
I'm working on a *.tcl file and I'm trying to write a file into the
problemtype folder. Here my line of code:
...
set fid [open /Programs/GidWin6.3.0b/problemtypes/FEM.gid/$projname.par w]
puts $fid [ ... ]
close $fid
...
For some reason it keeps appending "My current GiD project directory" at
the end of "My desired directory". Why? Is there a way to write a file
into a different directory? My current GiD project is at
d:\programs\GiDWin6.3.0b. Here is a screen capture of my error box.
Pls advice, thanks!
Tom
1606ee58.jpg
Thomas Chan
R&D Engineer
EMAG Technologies, Inc.
www.emagtechnologies.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20030117/d3d95045/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1606ee58.jpg
Type: image/jpeg
Size: 39883 bytes
Desc: not available
Url : http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20030117/d3d95045/attachment.jpg