Results 1 to 3 of 3

Thread: txt files

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2006
    Posts
    9

    txt files

    Hi

    I am working on a project that loads settings for a file. The file is saved as setup.dat, and is just a txt file.

    What would be the easiest way to make this file so that people can't load it into note pad and look at its contents?

    How can I save and read the file but allow others to just seem unreadable info.

    I am using vb.net 2005

    Thanks

  2. #2
    Frenzied Member
    Join Date
    Sep 2005
    Posts
    1,547

    Re: txt files

    Quote Originally Posted by scandog
    Hi

    I am working on a project that loads settings for a file. The file is saved as setup.dat, and is just a txt file.

    What would be the easiest way to make this file so that people can't load it into note pad and look at its contents?

    How can I save and read the file but allow others to just seem unreadable info.

    I am using vb.net 2005

    Thanks
    encrypting it would be the only way.

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: txt files

    You should probably be using application settings. You can encrypt all or part of the config file, in which settings are stored. I'd suggest that you read about the My.Settings object.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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