Latest News

 










java.io.File

Previous slide Next slide Back to first slide View graphic version


java.io.File


 
My other sites

Latest News

 










java.io.File

  • Platform independent definition of file and directory names.
  • Has methods to operate and query files and directories.
  • Constants to represent platform separators:
    directory
    UNIX has / and DOS \
    path
    UNIX has : and DOS has ;
  • Creating a new File Object :
      File myFile

      myFile = new File(“test.dat”);
      myFile = new File(“/”, “test.dat”);
      File myDir = new File(“/”); myFile = new File(myDir, “test.dat”);

Previous slide Next slide Back to first slide View graphic version