Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Writing unix files on Windows

Status
Not open for further replies.

dcomit

Technical User
Jun 20, 2001
115
0
0
GB
I’ve written some tcl to run on Win2000 to parse a file line by line, do changes as required and write line by line to an output file. It works ok but I need the output file in unix rather than DOS format. In DOS format, lines are delimited by x0a x0d, whereas unix files use x0a only.
 
Thank you, I think that's in the right direction. From the manual entry, the command should look like this
Code:
 fconfigure stdout -translation cr
However, I'm still getting crlf in the output file. I'm using puts to write to the file but if I use the file handle in the fconfigure command I get a program error.

 
Belay that. Finger trouble - it works ok now.

Thanks again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top