This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

writing values to a txt file  RSS feed

 
sathya venkat
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi anyone,
i need to write values from the dos prompt and i need those values to be put into a txt file. i need to specify the name of the txt file in the java program itself. what i mean to say is that, as soon as i enter a value and press ENTER, it shud directly be stored into a txt file. i also need help on how to retrieve the values from the file and store into an array. please help me to get the code or give me detailed explanation. i am not very well versed in java. please help me out soon.
 
Joe Ess
Bartender
Posts: 9426
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Java Tutorial has a very good chapter on IO
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!