sri_bali
asked on
File processing using Java
Hi,
How can I read a pipe delimited multi-record file using Java, make some data conversions/modifications to the elements of the file and write the updated input file elements to a pipe delimited output file?
For example, if the input file is as follows:
XYZ|4939.55|555|Java|XML
ABC|566.44|383|Visual Basic|ASP
Convert 4th field ("Java" to "Programming" and "Visual Basic" to "Windows") and divide the 3rd field by 100.
My output file should be like this:
XYZ|4939.55|5.55|Programmi ng|XML
ABC|566.44|3.83|Windows|AS P
Thanks for your help.
How can I read a pipe delimited multi-record file using Java, make some data conversions/modifications to the elements of the file and write the updated input file elements to a pipe delimited output file?
For example, if the input file is as follows:
XYZ|4939.55|555|Java|XML
ABC|566.44|383|Visual Basic|ASP
Convert 4th field ("Java" to "Programming" and "Visual Basic" to "Windows") and divide the 3rd field by 100.
My output file should be like this:
XYZ|4939.55|5.55|Programmi
ABC|566.44|3.83|Windows|AS
Thanks for your help.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Recommendation: Accept mayankeagle's comment as answer.
This old question needs to be finalized -- accept an answer, split points, or get a refund. For information on your options, please click here-> http:/help/closing.jsp#1
EXPERTS:
Post your closing recommendations! No comment means you don't care.