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

Use of File Class...

 
priya gupta
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone here please tell me the use of File class in java..??
 
Anubhav Anand
Ranch Hand
Posts: 341
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


or


 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24211
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's one use of File, a simple one. In general, java.io.File 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.)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic