character limit for printf, sprintf, fprintf

Am I correct that each string argument for fprintf (and printf, sprintf) is limited to 2399 bytes?

I tried to search the manual and couldn't find any reference to this. I tracked down an "printf error" to fprintf and a long string.

This seems to work:

string s
int i, chars, imax
    fprintf refnum, "%s", s[2000*i, 2000*i+1999]

Is that a reasonable way to append a string of unknown length to a text file?

If you are just dumping a string to a file like in your example, FBinWrite is a better choice.

Yes, FBinWrite was sufficient for what I was doing. Still, it might be worth adding a note in the help files about the limitations of these other operations.