Odd print# problem

Melpher23
09-06-2003, 09:32 AM
I'm having an odd problem with a program the writes out a text file using print#.

When a fellow in Isreal uses the program, the lines in the text file have line feeds but no carriage returns. Trying to force the issue by printing chr$(13) & chr$(10) doesn't work either.

I have to assume that it's due to a difference in character sets. I tried a test where I wrote a text file out in binary mode, and that seems to work, but there must be a better way.



Thanks for your help.

passel
09-06-2003, 09:38 AM
That does seem odd to me. Having only LFs for terminators is a unix
standard. I wonder if the file is being written to a samba server or some
shared unix/windows directory over a network. Or even being looked at
and saved/modified from the unix side by someone, so the CRs are "lost".
I don't know if there is any "regional" reason that Windows would save with
only LF's.

Melpher23
09-06-2003, 09:42 AM
I forgot to mention he's using Win2000 pro.
I'm pretty sure it's not being run over a network.

I also had him send me a file he created with notepad, and it looks file.
Yup very odd!

Thanks.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum