Controlling length of record counter
Hi -
I am a C# newbie. I am building a file for a 3rd party vendor. The file requires a file trailer, which is 72 bytes long. At offset 41 for a length of 9, I need to insert the number of records in the file. How do I control the length of the record counter, inserting it to the record at the proper spot and for the proper length?
Thanks for all help!
David
Re: Controlling length of record counter
Open the file with a file stream and use the filestream's Position property to set where the data is written to.