text: Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.
  One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.
  File myFile = new File ("myFile.txt");
  myFile.setReadOnly();
  If you wish to do this for multiple files, create a new FilenameFilter that only accepts text files and call
  myDir.list(myFilenameFilte
  where myDir is the directory in which your text files reside and myFilenameFilter is your FileName Filter that only accepts text files. Code for this filter could be as follows:
  import java.io.FilenameFilter;
  public class myFilenameFilter implements FilenameFilter
  {
  public boolean accept(File dir, String name)
  {
  return (name.endsWith(".txt"));
  }
  }
  This file will accept only files with the extension ".txt", rejecting all others.
  Hope this helps somewhat --
  Alexander Wilkins
  thanks for the reply.
  setReadOnly() method is available in Permissions class of java.security and not in File class. I tried your sample, it comes out with an error saying method not found in java.io. Even I tried using Permissions and FilePermission classes, but I am not able to set.....
  here is a sample code what i tried for your ref....
  File ff = new File("test.txt");
  Permissions p = new Permissions();
  FilePermission fp = new FilePermission("test.txt",
  p.add(fp);
  p.setReadOnly();
  boolean rd = p.isReadOnly();
  System.out.println(rd);
  in above sample rd(boolean) comes out with true, but it is not setting the file to readonly.
  please suggest to solve this.
  I need also how to set archive bit of a file to on/off.
  bye
  With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.
  -- Alexander Wilkins
  thanks for the reply.
  I use windows simple text editor for coding and compile on command prompt. OS is Windows 95. JVM (javac.exe) is jdk1.2beta3.
  thank you and bye.
  A workaround might be to set the readOnly and archive attributes from a batch file. The command to set these attributes from the command line is
  attrib [+r|-r] [+a|-a] [+s|-s] [+h|-h][[drive:][path] filename]
  where something like
  attrib +r -a myFile.txt
  would make myFile.txt read-only but remove its archive attribute. Also, java does not seem to have any way of reading/setting the archive setting of a file, probably because it is windows-specific.
  Hope this is helps some --
  Alexander Wilkins