UNIX/Windows text file compatibility

From: Olivier Laurent (oliderid_at_yahoo.co.uk)
Date: 02/28/05


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



Relevant Pages

  • Re: How to search for documents in Word 2007
    ... Bob. ... e-mail from Word with Eudora. ... Write/Draw Anywhere (when not on Windows Tablet PC edition) ... Office 2007 core apps native file format is XML wrapped in a .zip box with differing file extensions under ...
    (microsoft.public.word.docmanagement)
  • Re: Unrecognizable file format
    ... It still says file format not recognizable. ... Windows Explorer to look at the file I saved to the hard drive. ... opened the Excel file 3 wks ago, it opened just fine like it always does. ... it shows the type as "Microsoft Excel Worksheet." ...
    (microsoft.public.excel.misc)
  • Pages 08 opens Word 2007 documents
    ... For anyone who hasn't been following, the background is: [Windows] Office ... 2007 introduced a new file format, Office Open XML, which Office 2004 for ... the Mac doesn't support. ...
    (microsoft.public.mac.office.word)
  • Re: How to search for documents in Word 2007
    ... Among the features taken out of Office 2007 are ... Write/Draw Anywhere (when not on Windows Tablet PC edition) ... Office 2007 core apps native file format is XML wrapped in a .zip box with differing file extensions under ... Office 2007 Beta 2 Online Test Drive, Downloadable beta, ...
    (microsoft.public.word.docmanagement)
  • Re: error C00D11CD
    ... You would have to include a file format at least.... ... Replies are to help benefit others in helping you ... > Microsoft Windows XP ... > tried to watch a video online and this error message came up. ...
    (microsoft.public.windowsmedia.player)