Results 1 to 4 of 4
- 09-24-2010, 07:57 PM #1
Member
- Join Date
- Sep 2010
- Posts
- 2
- Rep Power
- 0
java program for reading delimited txt file to excel sheet
Hi,
I need help for a specific requirement.
I have some .txt files these contain delimited data, delimiter is the pipe (||) operator.
Sample data
Upadate
Color||blue
size||6
size||7
size||8
type||cleats
EOR
Every record set start with update which tells the beginning of record set and ends with EOR (End of record). The data is between these two. The property name first then pipe operator and then data.
I am looking for a help to read this txt file by java program and put this to excel sheet. THere I can make modifications to data manually and then want to read it to txt file back.
Require help on this.
Thanks
- 09-24-2010, 08:44 PM #2
What part(s) of your program are you having trouble with?
If you are reading a simple text file, you could use the Scanner class.
To separate the records at the "||" separator boundary, you could use the String indexOf method to find the || and the use substring.
- 09-24-2010, 08:52 PM #3
Member
- Join Date
- Sep 2010
- Posts
- 2
- Rep Power
- 0
RE:
I have no clue about the approach I should take for this IO operation.
Can you please suggest me a little detailed approach in getting started with the implementation.
Really appreciate your discussion below.
Thanks
- 09-24-2010, 08:53 PM #4
Similar Threads
-
writing to a excel file from java program
By priyankabhar in forum New To JavaReplies: 7Last Post: 06-04-2013, 01:00 PM -
how to insert a file object in excel sheet using java
By jyoti.dce in forum Advanced JavaReplies: 1Last Post: 08-11-2010, 06:08 PM -
how to read excel file through java program
By madhuragowda in forum New To JavaReplies: 2Last Post: 04-16-2010, 08:53 AM -
How To Add More Rows To Excel Sheet In Java
By JMartins in forum New To JavaReplies: 0Last Post: 12-30-2009, 11:30 PM -
problem with reading excel sheet data reading using poi libraries
By sandeepsai17 in forum New To JavaReplies: 5Last Post: 08-21-2009, 11:03 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks