So I am completely new to VB and coding. As in I understand the logic and understand how to read it, i just cant write it (much like how I am with Spanish, go figure) Anyways, I have a relatively simple project I am working on but it is tough for...
So I am completely new to VB and coding. As in I understand the logic and understand how to read it, i just cant write it (much like how I am with Spanish, go figure) Anyways, I have a relatively simple project I am working on but it is tough for me because I suck at writing code.
Basically I have a file that is fixed width.
My Issue: dealing with a standard file that contains headers and footers as well
I am assuming I would need to write something that would say open file, etc, etc, then it would state to read in the first line and after that there would be a Do While Not EOF loop but it would need to be NOT EOF +1 because I would need to end the loop at the 2nd to last line so that I can read in the footer as well. I know that I can do this simply by doing an import spec in access but the incoming file will frequently change so I need to do it in VB so that I can modify the columns and add in new data etc. So if someone could basically help me with a simple coding framework, how to first read in the file, how to read in the first line of data, then create the loop, read in the whole line (because I can then write it specifically to my file), and how to do the footer, I know I can do the rest. I am one of those people who works well off of examples so Im just looking for a good blueprint/framework from someone. Your help is greatly appreciated. Thanks.