Thanks Mike,
The FM_APPEND flag wasn’t in the version I posted, so there was no reason to mention it.
I just wish there was more documentation on some of the functions, such as what the return values are, what the flags actually do, etc.
Oh yes: one last rookie error.
If you look at my original code, you’ll note that I’m reading the result of writeUserFile() into a Boolean.
You’d never think I’d been writing software for 30 years…
Regards,
Geoff