File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Can Someone Help?" Watch "Can Someone Help?" New topic
Author

Can Someone Help?

Lucious Mucas
Greenhorn

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.

Thanks
Jessica Sant
Sheriff

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: http://aspose.com/file-tools
 
subject: Can Someone Help?