File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Use of File Class... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Use of File Class..." Watch "Use of File Class..." New topic

Use of File Class...

priya gupta

Joined: Apr 04, 2008
Posts: 4
Can anyone here please tell me the use of File class in java..??
Anubhav Anand
Ranch Hand

Joined: May 18, 2007
Posts: 341

Priya... ,
Welcome to JavaRanch!

We're pleased to have you here with us , but there are a few rules that need to be followed, and one is that proper names are required. Please take a look at the JavaRanch Naming Policyand adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

To know about any of the Java classes Sun's api docs is good place to start with. You can visit this file api doc link for more details.
[ April 04, 2008: Message edited by: Anubhav Anand ]
camilo lopes
Ranch Hand

Joined: Aug 08, 2007
Posts: 202


Brazil - Sun Certified Java Programmer - SCJP 5 About Java - Update every Week.
Guide SCJP - tips that you need know
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24199

That's one use of File, a simple one. In general, represents a path on a file system. It includes methods to check if there's a real file corresponding to the path, to delete the file at that path, and to query various properties of a file at that path (like whether it's a directory or not.)

[Jess in Action][AskingGoodQuestions]
I agree. Here's the link:
subject: Use of File Class...
It's not a secret anymore!