Results 1 to 4 of 4
Thread: Multiple Rows In File Creation
- 06-14-2011, 03:09 PM #1
Multiple Rows In File Creation
Hello people! When you are creating files via Java, I only know how I create a long, long, long row of text into a file. Instead of that, is there any possibility of make Java create files with multiple rows in? Tries so far: I have tried to use the "\n" but it does not work when I'm creating files! :(
- 06-14-2011, 04:42 PM #2it does not work
The "\n" character should end a line of text. For other files, you may need to use different characters to end a record.
What program are you using to view the file after it is written? Is there a problem in all file viewing programs or just for some of them?
- 06-14-2011, 05:41 PM #3Moderator
- Join Date
- Apr 2009
- Rep Power
- 06-14-2011, 07:54 PM #4Notepad (the default windows txt file viewer) doesn't recognise "\n" by default.
I sometimes do that when I want to look at source code from a jar or zip, but don't feel like firing up NetBeans.
- By Bulelakes in forum JDBCReplies: 2Last Post: 11-15-2010, 02:19 PM
- By bigj in forum New To JavaReplies: 2Last Post: 02-07-2010, 06:31 PM
- By xcallmejudasx in forum JDBCReplies: 1Last Post: 04-23-2009, 08:55 PM
- By sankarguru in forum Enterprise JavaBeans (EJB)Replies: 1Last Post: 03-25-2009, 06:26 AM
- By SRJ1957 in forum Advanced JavaReplies: 0Last Post: 08-11-2008, 09:26 PM