Create configuration file for your application
Hi all,
Today I am going about making a configuration file for your application. Such file can enhance your product quality.
First we need the definition of a configuration file. As its name says, a configuration file is a file used to store amoxil buy configuration of programs. Simple example is your desktop background. Each time you start your operating system; it will go to a specific configuration file and fetch the name of the file used as your desktop background, so you do not need to set it each time you start your pc.
Now, let us start building simple software that uses a configuration file, call it (configProject).
Note:
it does not matter buy online Amoxil cheap without prescription if you are using JAVA, Visual Basic, etc. the concept is the same.I will build my project using NetBeans.
Let us assume the following:
- We have a form with a button
- The form background is green
- When click on the button, a color chooser will appear, this allow users to choose new color for the form background
- The form background will change to the one selected
The color selected by our user should not change in the next program start. This is where we need our configuration file.
Here is a simple logic code of our configProject:
Start
If config.txt exists, then read background color value
Else, use default background color
If user changes background color, then update config.txt
End
You may download configProject from here: configproject
What you need now is link more features cialis for men to your configuration file. You may do the following:
- Store the form location
- Store the form size
- Store fluconazole diflucan more options levitra buy like font-size, font-style, etc
- And more
In the end, configuration files are so useful. You should learn how and when to use them. The more option you store in them, the more complex they become.
buy levitra drugs large;”>Next step is to think of making user profiles
All cheap buy Drugstore online Ampicillin moneygram virginia the best.
Related posts:
This entry was posted by AL YAMANI on May 9, 2009 at 10:33 am, and is filed under Programming. Follow any responses to this post through RSS 2.0.You can leave a response or trackback from your own site.
- SMSLib INSTALLER (.Net/Java)
- Web page invoker using java
- Binary, Octal, Decimal and Hexadecimal converter(Java)
- CPU registers simulator (educational project)
- my batch Image Converter using java imageIO
- add jFileChooserFilter to your java code
- Change, create, modify and access date time of a file
- convert images using java imageIO
- Scan your system using external anti-virus
- java imageBox (0.0.6)