UNIX/Windows text file compatibility
From: Olivier Laurent (oliderid_at_yahoo.co.uk)
Date: 02/28/05
- Next message: Tim Van Wassenhove: "Re: UNIX/Windows text file compatibility"
- Previous message: Michael Fesser: "Re: Want to remove duplicates in a string"
- Next in thread: Tim Van Wassenhove: "Re: UNIX/Windows text file compatibility"
- Reply: Tim Van Wassenhove: "Re: UNIX/Windows text file compatibility"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 28 Feb 2005 06:55:53 -0800
Hello,
I guess it's a bit off topic but my script is written in PHP so I
guess somebody out there could help me.
I'm facing the well known issue between windows and UNIX related OS.
The file format is crucial. The file is made on a linux box and as to
be parsed on a windows box by a commercial software (so I cannot play
with the code on that side).
I'm having a problem to mark the end of lines.
"\n" as you all know doesn't pass well on Windows.
How could I replace this one:
fwrite($fichier, "this is a new line\n");
to make it works with windows?
Thank you,
Olivier
- Next message: Tim Van Wassenhove: "Re: UNIX/Windows text file compatibility"
- Previous message: Michael Fesser: "Re: Want to remove duplicates in a string"
- Next in thread: Tim Van Wassenhove: "Re: UNIX/Windows text file compatibility"
- Reply: Tim Van Wassenhove: "Re: UNIX/Windows text file compatibility"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|