dba123 0 Newbie Poster

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.