manipulate text files

pts.
Tags:
VB.NET
Hi, I have a text file that needs to be exported to a sql server table. the text file is something similar to this, ------------- 01.08.2007 06:00 go to work 12:00 lunch 17:00 go home 19:00 dinner 21:00 go to bed 09:00 go to leisure centre -------------- I need to pull these details to a db table which has columns Date, Time, Description. The first record imported will be Date. A new record begins when a new time delimiter appears in the text file. A new date begins if a record falls after 06:00. Does anyone have idea how to do this using vb.net?

Answer Wiki

Thanks. We'll let you know when a new response is added.

Your best bet will probably be to run a loop through the file taking the values into variables then loading those variables into the database. Since you have to evualite each row independently a row by row process will be best.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following