• Post Reply Bookmark Topic Watch Topic
  • New Topic

Need help !

 
Pallavi Chakraborty
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everybody,
I have two programs. One gets the first and last name from the user and sends them to a File.
Another program tries to read this first name and
last name from the file.
However, I have seen that nothing is getting written on to the file.
I am pasting the code for the two programs.

Here is the second code

Please help me out.
Pallavi
 
Ta Ri Ki Sun
Ranch Hand
Posts: 442
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Pallavi, a topic like "need help" is not the best way to get help, you should at least describe your problem, lucky for you I have no work to do right now
anyhat, your problem is that you dont close the writer, add this after you print " pw.close(); ".
 
Pallavi Chakraborty
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot,
Will choose a better topic next time>
Pallavi
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!