RoofRabbit Regular

Joined: 06 Jul 2005 Posts: 95 Location: Lenoir, NC USA
|
Posted: Aug 12th, 2005 08:32 PM Post subject: |
|
|
Actually, Yes.
When you read from and write to your own files that your program would understand, you can place any data you have in it in any order you wish. The file may be named anything you wish. I wouldn't name it with an .exe extension or the such because windows could get confused if it were clicked on by some other program.
An example is almost all the stuff I write has a basic module (Preference.bas) which has a custom UDT (user data type). It in, it stores the window positions of any forms I have in the program. It may also store the last filename my app used or whatever user preference that would be related to my app in it. Point being, I often name the file with the app's name with the extension of ".Preferences". A menu creator app I made saves it's user prefs as "MenuCreator.Preferences".
The file extension you choose to use should be one that would not conflict with a default file association in windows. And remember, the old days of a maximum of 3 letters in the extension has been gone since win95. That's why I chose to completely spell out the word "Preference" as my file's extension, it tells what the file is.
You should also understand, you don't need a file extension at all if only your program will be reading and writing to it. _________________ Website - [link] |
|