Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class DataDB
- {
- // POSTGRESQL PARAMS
- public static string server = "192.168.0.65";
- public static string port = "5439";
- public static string user = "unam";
- public static string database = "unam";
- }
- // POSTGRESQL PARAMS
- private static string server = DataDB.server;
- private static string port = DataDB.port;
- private static string user = DataDB.user;
- private static string database = DataDB.database;
- // POSTGRESQL PARAMS
- public static string server { get; set; }
- public static string port { get; set; }
- public static string password { get; set; }
- public static string user { get; set; }
- public static string database { get; set; }
- public static void readData()
- {
- TextReader readFile;
- readFile = new StreamReader("C:\Users\unam\Documents\Hugo\Datos.txt");
- server = readFile.ReadLine();
- port = readFile.ReadLine();
- user = readFile.ReadLine();
- database = readFile.ReadLine();
- readFile.Close();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement