ebaichtal
July 6th, 1999, 12:30 PM
I have to write a program that will take input from a user, and then dump it into an ASCII file that meets a specific format. Each field has to be a fixed # of characters and filled with spaces. For example, two fields - a first and last name, each 20 characters would be "Homer ""Simpson " without the quotes though. Basically the field, then padded with spaces if it doesn't take up 20 characters, and then the next field, etc.
I was going to write this in C/C++ at first because of the string manipulation. Then I tried MS Access and got pretty close, then I thought VB might be the easiest way, but I am not sure what exactly to do.
There are some fields that will never change so I don't want to bother the user with them. But they must repeat in each entry. Each entry being 20 fields or so. (Yes, the data has to match a specific format for a legacy program.) So I'd like to send all the fields to an ASCII file and then let the user keep typing entries and then dump a bunch of entries to a file and save it, and then start over for the next time the person does this. The records don't need to be saved or archived or anything.
So where do I start? What's the best thing to do this project in? I'm a neophyte in VB and would probably have to learn VB to manipulate the ASCII file if I went with Access. So what functions or pieces of code should I be looking at for doing what I want to do? Thanks
edwardb@netcom.com
I was going to write this in C/C++ at first because of the string manipulation. Then I tried MS Access and got pretty close, then I thought VB might be the easiest way, but I am not sure what exactly to do.
There are some fields that will never change so I don't want to bother the user with them. But they must repeat in each entry. Each entry being 20 fields or so. (Yes, the data has to match a specific format for a legacy program.) So I'd like to send all the fields to an ASCII file and then let the user keep typing entries and then dump a bunch of entries to a file and save it, and then start over for the next time the person does this. The records don't need to be saved or archived or anything.
So where do I start? What's the best thing to do this project in? I'm a neophyte in VB and would probably have to learn VB to manipulate the ASCII file if I went with Access. So what functions or pieces of code should I be looking at for doing what I want to do? Thanks
edwardb@netcom.com