× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.




On Aug 3, 2010, at 5:45 PM, rpg400-l-request@xxxxxxxxxxxx wrote:

I have writing to a file used as a log file. The program worked at some
point, but changed. Now it is writing to the log file, but it does not in a
readable form.


Well O_APPEND and O_TRUNC together don't seem to make a lot of sense, but wouldn't cause the problem you describe. Neither does the spurious O_APPEND in the second open.

Have you looked at the code page of the file? Is it 819?

Have you deleted the file and tried over? best guess is that at some point it was created with a different code page.

All of this assuming that the code you show is the version is use of course <grin>


Jon Paris

www.Partner400.com
www.SystemiDeveloper.com




As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.