• Post Reply Bookmark Topic Watch Topic
  • New Topic

i\o??  RSS feed

 
Tersa
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
string word;
Get input for word from user

can someone help me with my program...I want to create a file contains string word (from above) and then the file will output this info onto the terminal screen afterwards. However, if I loop it so that the next user will be able to enter another value for the same variable word then the file will accumulate the info and display both contents
e.g 1st user enters "Hi" for variable word
file saves this info
outputs this info
next uesr enter "Bye" for variable word
I would like the output to look exactly like: Hi Bye

how would i do this?? Can someone help me with the code thx
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tersa,
Welcome to JavaRanch!
We ain't got many rules 'round these parts, but we do got one. Please change your display name to comply with The JavaRanch Naming Policy.
Thanks Pardner! Hope to see you 'round the Ranch!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!