|
-
Jun 20th, 2006, 12:42 PM
#1
Thread Starter
Junior Member
new line
i make text area that take the name of file and after that she take the content of word but ihave problem that it append the file name and after that the content of file and that is not what i want
i want the file name be in line and the content of file in other line
as the following
ss.txt
hallo
how are you
how i can make "\n" in java
-
Jun 20th, 2006, 03:17 PM
#2
Frenzied Member
-
Jun 20th, 2006, 03:37 PM
#3
Thread Starter
Junior Member
Re: new line
thank you for your reply but i want to know what is mean by line of text
-
Jun 20th, 2006, 03:52 PM
#4
Re: new line
lineOfText is the variable that you are appending \n to.
-
Jun 20th, 2006, 04:18 PM
#5
Re: new line
 Originally Posted by shereen
how i can make "\n" in java
Use:
Code:
String newLine=System.getProperty("line.separator");
And replace all "\n" with the (newLine) variable
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
Jun 22nd, 2006, 02:11 PM
#6
Thread Starter
Junior Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|