Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
shruthi_R
Starting Member
10 Posts |
Posted - 2007-03-26 : 09:28:51
|
| with the help of the following code am able to read the text filenow i need to insert values to the datatable in datasetcan anybody help me on this regard string path = Server.MapPath("Account.txt"); StreamReader sr = File.OpenText(path); string contents = sr.ReadToEnd(); Label1.Text = contents; Label1.Text = contents.Replace(Environment.NewLine,"<br>"); sr.Close(); how shall i spilt them and add each value to two fields of the datatablefor example i have the fields in text file asUsername1:Password1Username2:Password2etci need to add the username seperatelt to a field called username in tableand password in password field of the datatablean example with code would be better and helpfulthanksshruhti |
|
|
X002548
Not Just a Number
15586 Posts |
|
|
|
|
|