Results 1 to 3 of 3

Thread: File properties?

  1. #1

    Thread Starter
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418

    File properties?

    I need some advice. Im working on a program and i have multiple files that are to be loaded onto the users system in addition to the program. They are simple .txt files but i want to either be able to set the files for read only or hide them from the user all togther. The java.io.File class has methods to test wether
    the file is hidden or if you can read or write to it but i see no methods to set the file properties. Any ideas guys? Thanks.

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    There is the setReadOnly() method of the File class, but I don't know about hides files.

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3

    Thread Starter
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418
    Posted by crptcblade
    There is the setReadOnly() method of the File class, but I don't know about hides files.
    That would work but im not sure if that would be safe to use since im pretty sure the user could just change read only at any time. Ill have to find an alternate way. Thanks. crptc

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width