Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Re: How to insert the end line symbol into a file
Re: How to insert the end line symbol into a file [message #291014] Tue, 06 September 2005 12:52
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Ana Gaspar wrote:
> Hi,
> I want to insert some text when a new file is created by user using my
> own wizard. I'd like to insert differents lines in the file. I tryied it
> writing /r/n but the text appears in the same line.

You should be able to use "\n", not "/n". This should also work:

result += System.getProperty(line.separator) + "<tag2></tag2>";

Later,
PW


Previous Topic:RuntimeExceptions and Jobs/Scheduler in Eclipse
Next Topic:Need alternative for org.eclipse.core.resources in eclipse 3.1
Goto Forum:
  


Current Time: Wed Apr 24 19:26:25 GMT 2024

Powered by FUDForum. Page generated in 0.02759 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top