• Post Reply Bookmark Topic Watch Topic
  • New Topic

Writing Strings in File  RSS feed

 
Kush Kush
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can we write a lines of text in File by a Java Program,Given The file must be readable by any user who simply opens it.Note It should not contain any special characters in between words of file ?
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let's start with this simple program:

Do you get "special" characters between words or lines when you compile and run it? Change the file name string "c:\\tests\\myoutput.txt" first if you need to.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!