In this case I see that If string 1 and string 2 are not real file it does not work.
What are the classes in which if I pass a file it's going to be created automatically? Do we have a list of these classes?
for example I know that the following:
FileReader reader = new FileReader(new File(/home/user/Desktop/indeed.txt);
automatically creates the file without having to code file.createNewFile();
Bottom line: I would like to know if there is a list of classes which automatically create the file passed in the constructor. I see it's not the case of a FileInputStream;
Thanks in advance.
The_Nick.
list of classes which automatically create the file passed in the constructor
Moderator: admin
-
- Posts: 132
- Joined: Thu May 16, 2013 9:23 am
- Contact:
list of classes which automatically create the file passed in the constructor
Last edited by admin on Mon Jun 24, 2013 6:25 am, edited 2 times in total.
Reason: removed question reference from title
Reason: removed question reference from title
-
- Site Admin
- Posts: 10066
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1274 :
Please go through the API javadoc for all the File related classes for this.
HTH,
Paul.
HTH,
Paul.
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 231 guests