Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Java: How to determine if File or Directory is hidden

Java: How to determine if File or Directory is hidden
{filelink=7770}

import java.io.File;
public class File_Modes
 {
  public static void main(String[] args) {
    File file = new File("C:/test.txt");
    System.out.println(file+(file.isHidden()?" hidden":" is visible"));
  }
}

Users who found this page were searching for:

  • examples for factorial program in perl
  • how to retrieve email from gmail in java swings
  • python read binary file
  • print number of occurrences python
  • how to get last modified date in ftp using perl
  • how to create a class in python
  • DBMS File delete
  • python compare strings
  • python tkinter example with menus
  • display a calendar java

No comments yet.

Leave a Comment