Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

java IO

 
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
 
It runs on an internal combustion engine. This ad does not:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!