Re: write into a file
From: Andrew Thompson (SeeMySites_at_www.invalid)
Date: 02/08/04
- Next message: Steve Horsley: "Re: Java, Linux and FIFOs"
- Previous message: Tor Iver Wilhelmsen: "Re: write into a file"
- In reply to: Tor Iver Wilhelmsen: "Re: write into a file"
- Next in thread: Hasan Babu H: "Re: write into a file"
- Reply: Hasan Babu H: "Re: write into a file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 08 Feb 2004 09:49:41 GMT
Tor Iver Wilhelmsen wrote:
> ionalia123@hotmail.com (Junior) writes:
>
>> can somebody help me with write file ? i am trying to do print '\n'
>> (enter) into .txt file(i try to open use note pad), but somehow it
>> doesn't work.
>
> Yes it does, it's Notepad that doesn't work. Notepad only accepts
> "\r\n" as line ending, treating a single "\n" as an unprintable
> character.
Most Windows based editors are not
broken like NotePad. Having said that,
you cen get the default system 'new line'
using
System.getProperty( "line.separator");
I would still recommend using another
editor though.
-- Andrew Thompson * http://www.PhySci.org/ Open-source software suite * http://www.PhySci.org/codes/ Web & IT Help * http://www.1point1C.org/ Science & Technology
- Next message: Steve Horsley: "Re: Java, Linux and FIFOs"
- Previous message: Tor Iver Wilhelmsen: "Re: write into a file"
- In reply to: Tor Iver Wilhelmsen: "Re: write into a file"
- Next in thread: Hasan Babu H: "Re: write into a file"
- Reply: Hasan Babu H: "Re: write into a file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|