I have written programs that write data with fopen and fput.
I put all the information in comma delimited format, but not positional.
I would like to know how to write to a file positionally.
ie.
position 1, 7 bytes in length, invoice num
position 8, 4 bytes in length, total
If I have a invoice number that is 6 long and I put it at position 1, that leaves me a space short to put the total, and the positions are all messed up. I can do a strlength and find out how long and append spaces, but I was looking for an easier way.
Any thoughts would be appreciated.