Dec 12, 2006 #1 snowingnow Programmer Joined Jun 1, 2006 Messages 32 Location CA hello, I would like to create a file with tcl proc, how can i do this? thanks
Dec 12, 2006 #2 Bong Programmer Joined Dec 22, 1999 Messages 2,063 Location US set fid [open <file name> w] puts $fid <whatever you want> close $fid _________________ Bob Rashkin Upvote 0 Downvote
Jan 12, 2007 #3 mucklow Programmer Joined May 22, 2001 Messages 40 Location US You can also do it on the fly with the command prompt (on Windows), exec cmd /C echo "Whatever $var or text" > C:\\your_file and append to the file with double >> exec cmd /C echo "Whatever else" >> C:\\your_file Upvote 0 Downvote
You can also do it on the fly with the command prompt (on Windows), exec cmd /C echo "Whatever $var or text" > C:\\your_file and append to the file with double >> exec cmd /C echo "Whatever else" >> C:\\your_file