• Post Reply Bookmark Topic Watch Topic
  • New Topic

java IO  RSS feed

 
Aravind JAI
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to write a string into a new text file.?
 
Joni Salonen
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Like this: http://javaalmanac.com/egs/java.io/WriteToFile.html
Note: you need to "import java.io.*;"

Bookmark that site, there are loads of code samples like that.
 
Sam Codean
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am surprised at that Question being the this Forum. It should be in the Java Beginners. Aravind, are you sure that is the question you wanted to ask?
In any Java Book you would have got that answer.
Not meaning to hurt you though if it was a genuine question. There is alway a start so keep posting and we will solve them
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!