• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Data Access Class Reading a Text File????

 
Rich Barry
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have created a data access class... and for one of my constructors.. I need to go a text file and get the information : dsn name, username, and password from the file and bring it into the construtor... does anyone know how to do that??
Thx
Rich
Here is my constructor:
public DataAccess() {
}
 
Jamie Robertson
Ranch Hand
Posts: 1879
MySQL Database Suse
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is this a properties file? If not, have you considered using one?
read here for details:
Jamie
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic