File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes CHR(10) value in text file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "CHR(10) value in text file" Watch "CHR(10) value in text file" New topic

CHR(10) value in text file

Brian Agius

Joined: Oct 30, 2002
Posts: 9
I would ike to read records in a table and write them in a text file. Some records have a CHR(10) in the values. I managed to write to a file using the DataOutputStream, but Iwould like to have my records one under to be able to viw them quickly.
It is important that the CHR(10) is not replaced or removed.

Regards<br /> <br />BA
S Rubia

Joined: Apr 06, 2003
Posts: 23
Well Brian,
I didnt understand it quite that whats ur problem is,if ur problem is only Char 10 which is a Space (i guess) then one simple solution is that u cast the character to int since u r writing the result in a text file so i think that doesnt matter that which type the data is written in file...
i hope this will help u
I agree. Here's the link:
subject: CHR(10) value in text file
It's not a secret anymore!