PDA

Click to See Complete Forum and Search --> : Controlling length of record counter


D.Oake
Jun 25th, 2007, 12:51 PM
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

wossname
Jun 25th, 2007, 03:12 PM
Open the file with a file stream and use the filestream's Position property to set where the data is written to.