Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

I/O streams

 
Mezan Shareef
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all
how are you guys doing. I am pretty much new to programming,here is my doubt -

I am trying to read test.txt and write the same to newtest.txt. I have no idea of where do i save these 2 files. can any one help me out there.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the ranch. Please UseCodeTags the next time you post some code. I've added them for you this time.
 
Campbell Ritchie
Sheriff
Pie
Posts: 48968
60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your files will be wherever you tell the program to put them. In this case, in the same directory you are working from.

Why are you not using buffered streams? There is a section about buffered streams in the Java™ Tutorials.
 
Mezan Shareef
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell Ritchie wrote:Your files will be wherever you tell the program to put them. In this case, in the same directory you are working from.

Why are you not using buffered streams? There is a section about buffered streams in the Java™ Tutorials.


I was going through i/o package,,, first topic was about byte streams, next after some point comes buffered streams, i would use them as practice on... THanks for help Though.
 
Han Jie
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Amer Sohail wrote:
I have no idea of where do i save these 2 files.


hi amer

What do you mean by the above sentence?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic