The file size should be fine, I used "fsutil file createnew " under XP. I added some random characters.
I might have an error in reasoning. I tryed adding pf_lseek(10) to prevent first 10 bytes(?) to be overwritten:
printf("Writing 100 lines of text data\n");
res = pf_lseek(10); // Added Code
do {
ltoa(++n,Line);
strcat(Line," The quick brown fox jumps over the lazy dog. 1234567890\r\n");
res = pf_write(Line, strlen(Line), &bw);
Suggesting that my first 10 bytes will stay - but still it all was overwritten by the brown fox.
How do I correctly move t