File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Can Someone Help? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Can Someone Help?" Watch "Can Someone Help?" New topic

Can Someone Help?

Lucious Mucas

Joined: May 15, 2002
Posts: 3
I am currently in a data sturtures class(for java) at the college I attend. However, we have not covered a similar situation in any of the classes i have taken.
I have a program that requires you to type in a Username and Password everytime the program is opened. I would like to write a little program in java to supply the Username and Password to the program when the program is opened. My question: How do I get the progrgam needing the Username and Password to open the file I have written? Or should the program I have written call the executable of the program that needs the Username and Password? I have never written something like this and could use any help offered.

Jessica Sant

Joined: Oct 17, 2001
Posts: 4313

I think you'll easily be able to store the information in a flat file --> a .properties file and have your program read in the information.
You can find more information about .properties in this thread:
Help with Properties file
And in the API for java.util.Properties

- Jess
Blog:KnitClimbJava | Twitter: jsant | Ravelry: wingedsheep
I agree. Here's the link:
subject: Can Someone Help?
It's not a secret anymore!