Leonard Simon

Leonard Simon

  • NA
  • 1
  • 795

C# code to read text file and store it in database.

Jun 8 2015 10:12 AM
I need C# code to read a text file. I'm creating a desktop application.

the text will be like this "[email protected]"
 
I need to save the file in database as
 
Name -> name
age    -> 25
phone->9856584759 
 
read line by line and save in the database.
 
Can anyone help me! 
 
consider all data is fixed number of characters/// for eg - name = first 4 characters 

Answers (1)