I need to use my Delphi application to create a text file (which I haven't done before!) and I'm not sure how to start.
I have all the information to go in the file, but it has to be structured:
First field 10 characters
Second field 5 characters
Third field 25 characters
etc.
so if my first row of data for field1 is only 6 characters I need to fill in the other 4 with blanks, if field2 is blank then skip those five characters, and then fill in field3:
1111111111222223333333333333333333333333
Leslie 123 Main St.
Can anyone point me in the right direction to the best way of creating a file with structure? Thanks for any info.
Leslie
I have all the information to go in the file, but it has to be structured:
First field 10 characters
Second field 5 characters
Third field 25 characters
etc.
so if my first row of data for field1 is only 6 characters I need to fill in the other 4 with blanks, if field2 is blank then skip those five characters, and then fill in field3:
1111111111222223333333333333333333333333
Leslie 123 Main St.
Can anyone point me in the right direction to the best way of creating a file with structure? Thanks for any info.
Leslie