• Post Reply Bookmark Topic Watch Topic
  • New Topic

I want to add a carriage return to my file

 
shiva valanukonda
Greenhorn
Posts: 26
Hibernate jQuery Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I want to add a carriage Return ( \r) to my file where ever i required. like we do add new line character (\n).
Is it possible with the use of File Writer or not ?.

thanks in advance.....
Shiv
 
Paul Clapham
Sheriff
Posts: 21869
36
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. Why, did you try it and get unexpected results?
 
shiva valanukonda
Greenhorn
Posts: 26
Hibernate jQuery Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a requirement like that.
 
Greg Charles
Sheriff
Posts: 3010
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Shiva,

Paul was asking if you tried using a FileWriter and had trouble with it, not why you want to write out carriage returns. So, did you try using a FileWriter? Did it work for you?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!