Reading a string from a text
Dear Friends,
I have an application developed by C#.NET. I want to read the connection string of a database from a txt file.
How can I read a string from a txt file in C#.NET platform. Please help (with example if possible) .
Waiting for ur quick response....
Rajib
Re: Reading a string from a text
Create a StreamReader object and call its ReadLine method.
Re: Reading a string from a text
Please describe more with example...
-Rajib
Re: Reading a string from a text
Have a look at the help/MSDN topic for the StreamReader class. It provides links to code examples for numerous I/O operations.