How to Script Split for my txt file

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Mar 2006
Posts: 2
Reputation: dba123 is an unknown quantity at this point 
Solved Threads: 0
dba123 dba123 is offline Offline
Newbie Poster

How to Script Split for my txt file

 
0
  #1
Mar 18th, 2006
How to code this in a VB.NET Windows application is a first time for me. Below is an example of the incoming txt file. I've specified in it where to cut only for explanation, HOWEVER the txt incoming file will not have the --- to guide me....so I have to figure out how to tell it to cut after each Header/detail rows section as shown.

http://www.webfound.net/what_to_cut.txt

I have no idea how to script this, down to the syntax or anything right now. All I know is that I can use the classes in the IO namespace but need some big help understanding all of this for the first time and how I'd actually code the split.

Also, the output filenames (txt) must be int the format (portion of the HD row)_today'sdate.txt

so something like this each time it's split for the filename (position Substring(60,3) from the HD row) & Date .txt
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC