This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
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

Win a copy of Elasticsearch in Action this week in the Big Data forum!
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