aspose file tools*
The moose likes Beginning Java and the fly likes I/O streams Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "I/O streams" Watch "I/O streams" New topic
Author

I/O streams

Mezan Shareef
Ranch Hand

Joined: Apr 01, 2010
Posts: 40
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

Joined: Nov 24, 2005
Posts: 14688
    
  16

Welcome to the ranch. Please UseCodeTags the next time you post some code. I've added them for you this time.


[My Blog]
All roads lead to JavaRanch
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39415
    
  28
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

Joined: Apr 01, 2010
Posts: 40
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

Joined: Sep 24, 2010
Posts: 24
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I/O streams