Link to home
Start Free TrialLog in
Avatar of sri_bali
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|Programming|XML
ABC|566.44|3.83|Windows|ASP


Thanks for your help.

ASKER CERTIFIED SOLUTION
Avatar of Mayank S
Mayank S
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of CleanupPing
CleanupPing

sri_bali:
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.
Recommendation: Accept mayankeagle's comment as answer.