How to store / get application initialization information

Hi
Do you have any idea how to store application initialization information in a secured file and get them while running the application? Will appreciate if you could give sample code.
Thanks
mortoza

I am not sure what you mean but this section reads records from an ini-file and stores them into different combo boxes.
The name of the ini-file is stored in a resource file and theres where I get the file name.
try
     BufferedReader fin = new BufferedReader(new
               FileReader(getResourceString("LoginPanel.myIniFile")));
     while ((s = fin.readLine()) != null)
          if (s.startsWith("sys"))
               sysCombo.addItem(s.substring(7));
          else if (s.startsWith("usr"))
               usrCombo.addItem(s.substring(7));
          else if (s.startsWith("cmp"))
               cmpCombo.addItem(s.substring(7));
          else if (s.startsWith("env"))
               envCombo.addItem(s.substring(7));
          else if (s.startsWith("lib"))
               dtaCombo.addItem(s.substring(7));
}// End try
Extract from the ini-file:
[Libraries]
lib0 = Select Database
lib1 = DATABASE1
lib2 = DATABASE2
lib3 = DATABASE3
lib3 = DATABASE4
[Environment]
env0 = SelectEnvironment
env1 = ENVRONMENT1
env2 = ENVRONMENT2
env3 = ENVRONMENT3
[User]
usr0 = Select User
usr1 = USER1
usr2 = USER2
usr3 = USER3
This specific case use the information to log on to various systems.
Klint

Similar Messages

  • How to I get the card information to none so I can download my free apps it won't let me it keeps asking for card information

    How to I get the card information to none so I can download my free apps it won't let me it keeps asking for card information

    Is it a new account ? If it is then unless the instructions on this page are followed when creating an account : http://support.apple.com/kb/HT2534
    then credit card details will need to be entered before the account can be used to download any item from the store - you should be able to remove your card details after entering them

  • How can I get/Catch the information about Trigger firing?

    How can I get/Catch the information about Trigger firing?

    I am running one application (backend is Oracle) and have written one trigger, which will insert one row in two tables depending on user event (After Update Trigger).
    I want know last fired Trigger Information.
    Thanks

  • HT2589 Could you show me the full account information (account information)? How can I get the detail information that who charge me?

    Could you show me the full account information (account information)? How can I get the detail information that who charge me?

    I'm not entirely sure what you are asking, but you can view the purchase history on your account (and view your payment method) on your computer's iTunes : if you log into your account on your computer's iTunes via the Store > View Account menu option, you should then see a Purchase History section with a 'see all' link to the right of it. Click on that and you should then see a list of your purchases. On your iPad you can only see a cut-down version via this page (which also allows you to contact iTunes Support if you have a problem with a purchase) : http://reportaproblem.apple.com
    There are instructions on this page for managing and stopping auto-renewing subscriptions : http://support.apple.com/kb/HT4098
    Or do you mean something else ?

  • I just pressed the wrong button to erase of my IMac, how can I get back all information from my computer ?

    I just pressed the wrong button to erase of my iMac, how can i get back all information ?

    Possibly through a data rescue service (can cost a four-figure amount) if you didn't have an external backup.
    But you must stop using that Mac immediately, or your data will be over-written.

  • I changed my apple id but the apple id for icloud did not change on my mac.  How do I get icloud account information to change and match my new apple id?

    I changed my apple id but the applie id for icloud did not change on my mac in system preferences. 
    I have changed my apple id on system preferences under users and groups but the icloud preferences don't pick up the change.
    I restarted my computer, and still no change.
    I have been using icloud under my old apple id for mail calendars and notes.
    How do I get icloud account information to change on my mac's system preferences and match my new apple id?
    I am missing something.
    Please help.  Thanks.

    Thank you Roger, your solution gave me the courage to sign out of Systems Preferences.  The pop up told me it was going to delete my contact and other information from my mac, so I was hesitant to do that.  Well I did as you directed and I was able to sign in with my new apple id and I did not lose the information the pop up threatened I was going to.  So again thank you.  It is the little things that make a big difference sometimes.

  • I plugged my iphone into my computer but now my iphone looks just like my ipod!! all of my information is gone and i just got my phone so i have yet to back it up. how do i get my phone information back on my phone

    I need help I do not know how to get my phone back to phone setting it is now set up like my ipod and i do not know why or how it got there

    Your title asks "How do I get my iPhone information back on my (iPhone)?
    You also said "I have yet to back it up."  Therefore, all your information that had been on your iPhone is now gone.
    Your iPhone has (and will continue to) been refreshed from iTunes.

  • How can I get the disk information in Solaris 9

    I am new to Solairs9. I use the format utility to list my partitions, but there are many unassigned partitions. I pasted the format response below:
    # format
    AVAILABLE DISK SELECTIONS:
    0. c1t1d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
    /pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000011c6413e10,0
    Specify disk (enter its number): 0
    format> partition
    partition> print
    Current partition table (original):
    Total disk cylinders available: 14087 + 2 (reserved cylinders)
    Part Tag Flag Cylinders Size Blocks
    0 root wm 302 - 13482 63.96GB (13181/0/0) 134129856
    1 swap wu 0 - 301 1.47GB (302/0/0) 3073152
    2 backup wm 0 - 14086 68.35GB (14087/0/0) 143349312
    3 unassigned wm 0 0 (0/0/0) 0
    4 unassigned wm 0 0 (0/0/0) 0
    5 unassigned wm 0 0 (0/0/0) 0
    6 unassigned wm 0 0 (0/0/0) 0
    7 home wm 13483 - 14086 2.93GB (604/0/0) 6146304
    The part number from 3 to 6 are unassigned. What does this mean? How much space of these unassigned partitions? How can I mount these unassigned partitions to my local directories?
    Thanks.

    "+How can I get the disk information in Solaris 9+ "
    This was cross-posted to the Solaris 9 forum as well.
    http://forum.java.sun.com/thread.jspa?threadID=5223643

  • How do I get credit card information off so I can download free game

    How do I get credit card information off my accounts settings so I can download free games

    Then what you will use as your form of payment for apps and games that are not free?
    Is there a particular problem you're having that you need help with?

  • How do I get Application Manager to recognize that Photoshop is not installed?

    Application Manager says that Photoshop CS6 is installed. It isn't. I've rebooted the Mac and it still says it's installed.  What installed was a partial or corrupt file which I have trashed. How do I get Application Manager to recognize that Photoshop is not installed so I can download and install it again?  Thanks.

    Do you have an uninstaller available to you in the Applications/Utilities/Adobe Installers folder?  If so then please run the uninstaller.
    If you don't then please utilize the uninstallers available in this folder to remove all currently installed Adobe Creative Software.  You will then want to follow this by running the CS Cleaner tool.  You can find details on the use of the CS Cleaner tool at CS Cleaner Tool for installation problems | CCM, CS6, CS5.5, CS5, CS4, CS3 - http://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html.

  • How can I get CDP neighbor information from access point reports in Cisco Prime 2.0

    How can I get CDP neighbor information from access point reports in Cisco Prime 2.0?  I have looked through all the reports and I cannot find a report that gives me the CDP neighbor information of an access point.  I thought that information was in there, however I cannot seem to find it.
    Thanks in advance!

    Hi
    You can get this from an inventory report in PI (Select Report Type AP). Here is an example of PI 2.1 works for me. Once you export this into excel you can sort based on controllers & filter the single controller connected AP you want.
    Regards
    Rasika
    **** Pls rate all useful responses ****

  • HT204380 How can I get a contact information if I deleted it on Accident?

    How can I get a contact information if I deleted it on. Accident from my iPod touch 5g

    That was Great. Can't thank you enough.
    I'm new to the apple world, and I was having a real hard time getting  tis to work.  Your solution worked perfectly!!
    How about one more question.... Can't get my Iphone or Ipad to connect using Bluetooth, I get a message on the iphone/ipad saying they are not compatible with the Macbook Pro???? any suggestions?
    Thank for the help on the contacts..
    Cleve298..

  • Received new mac how do you get all your information from old mac?

    Received a new mac for my daughter.  How do you get all the information from old mac?

    Your best bet, by far, is to use Setup Assistant when your shiny new Mac first starts up (not Migration Assistant later).
    See How do I set up a new Mac from my old Mac or its backups?

  • How can I get the AirPlay information box to stop floating around my screen while looking at photos?

    How can I get the AirPlay information box to stop floating around my screen while looking at photos?

    Thanks for answering
    Well, the CS2 was my 1st full program that now my son is using in his new Laptop...
    The CS4 Master Collection is my full program that I bought when I was in College course and now I use for my own works...
    Both came in their own serial numbers and discs ... I install both completely to each computer but at the end on the registration asked for this "Validation code" and the message says that I can't do it on-line nor by mail; so to call to this phone 1-800-833-6687 and in there have the message to come to the "support " Adobe website and do all this going around.
    Now I saw previously that page you send me... I really don't understand it ... I got CS2 installed but I just need the validation code to get rid of that 30 days message...
    Why I have to uninstall it??? Could you explain me please..

  • How can I get the Task information..? Remedy for error "-200089"

    Hello,
    I am using PCI-6229 for the application, and VB6 for application development.
    We have a policy to create the tasks and associated channels using Measurement and Automation Explorer.
    I want to know can I retrieve the information of the tasks those are created ..
    When my VB program starts, I use DAQmxLoadTask function to start executing the task, but for this I need to know the TASKNAME. On site if the service engineer accidentally renames the task name, the program stops execution. To avoid this problem, i would like to know how can I get the information about the tasks, such as the tasks those are created, their names, type of channels used (i/ps, o/ps, Analog channels), etc.
    This would help my application to execute without hard coding the task names as well as I can close the tasks if they are running before exiting the application. 
    Also, while developing the application, it happens that the application crashes, and the tasks remain open and running. After I fix the error and execute the program, the application reports the error, "-200089 Task Name specified conflicts with an existing task name". To recover from this error, I need to restart the PC, which is most frustrating and time consuming. If I could know the tasks and task handles those are already created and running, I can safely delete them or continue using them.
    I would appreciate if you could help me in resolving this problem.
    Thank and regards,
    Kunalb

     Hi Kunalb,
     To read the tasks currently configured on the system you can use this function: DAQmxGetSysTasks.  This will return an array of the tasks on the system. In that same section of the DAQmx C Reference Help they talk about obtaining the other parameters you mention.
     Another solution would be to add security to MAX such that only engineers with proper permissions could launch and/or modify the tasks. This can be done with Windows XP in the properties of a file.
     I hope these suggestions help! Have a great weekend.
     Best regards,
     MatthewW
     Applications Engineer
     National Instruments
    Message Edited by Matthew W on 08-10-2007 02:13 PM
    Attachments:
    DAQmxTasks.JPG ‏97 KB

Maybe you are looking for

  • HT1589 problems with itunes after updating..can't locate some of my songs..some have an exclamation point beside them how do i get these songs back in my itunes

    I'm having problems with itunes after updating. I've lost all my playlists,,finally played around with it and got the songs back but some have an exclamation point beside them and can't be located. they are songs i've purchased. I'm not very computer

  • Help with basic program

    The program I am writing is supposed to ask the user to input a 4-digit Integer whose digits are not all the same, and then place the number in descending and ascending order, then subtract until the number 6174 is met. I'm very new with java but I c

  • Music Error

    When every I try to play music, it says the error code 805a193. I looked up this error code on Bing, and it says it occurs when you try to download an app. Please help, trying to listen to my music, and this is the second major problem with a Nokia 9

  • Close a JFrame from a button?

    How do I close a JFrame using a JButton to trigger the event? I want to dispose of the frame. thanks

  • Registration Failed for RFC

    I have created RFC connection in XI. Test connection failed since I had not registered Gateway for that RFC. Using Visual Administrator and then JCo RFC Provised I tried to register RFC using Gateway. But it failed to register and fired a up with the