On 05/04/12 02:36, MacArthur, Ian (SELEX GALILEO, UK) wrote: > >> Hmpf - the default is text and I know this, but forgot to take care >> about. Very stupid, of course it works now... > > For what it's worth, I just use "rb" and "wb" regardless of > platform since the *nix versions ignore the "b" anyway...
I like to put the #ifdef in there just so that, someday, the code could read: // OBSOLETE // Microsoft was purchased by Apple, and replaced with Unix. - 02/24/2016 // //#ifdef _WIN32 // fp = fopen(filename, "wb"); //#endif fp = fopen(filename, "w"); //#else _______________________________________________ fltk mailing list fltk@easysw.com http://lists.easysw.com/mailman/listinfo/fltk