Forums Register Login

reading passwords and connections from a flat file

+Pie Number of slices to send: Send
Hi there!
I am currently trying to figure out how to read connection information (ie username, password, dbname,...) from a plain text file. Does anyone have any leads or helpful tips???
Christine
+Pie Number of slices to send: Send
Here is how I would proceed:
1> Create an instance of File object
2> Read the file contents using BufferedReader and FileReader objects.
3> Read the file contents line by line.
4> Use the StringTokenizer object to break the line into various String tokens.
5> Store the tokens ( which may include user ids, passwords, etc.) into different vectors.
Regards,
Milind

[This message has been edited by Milind Kulkarni (edited August 30, 2000).]
+Pie Number of slices to send: Send
Hi again,
Thank you for your help, I have resolved my problem. I'm glad that there is a spot like this where programmers can help one another. I'll keep an eye on this place and help out when I can.
Thanks again.
Christine
Let nothing stop you! Not even this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1136 times.
Similar Threads
Is there an easy way
from class file to java file
hashtable to file
Array dimension missing
mysqlDriver.jar inside a JAR file
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 23:23:36.