× 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.



Hello,

I have prototyped open and close and I am using Scott's readline almost
verbatim as an external procedure to my program. I have an interface
process that determines the type of message I have received by reading the
header inside each file. There is a group of 3 programs that read the list
of files, and then opens each file to see if it should process them.

Just for the record: The readline() procedure was intended for EDUCATIONAL PURPOSES ONLY. It was intended to be a simple example that you could learn about IFS programming from. It's up to you to write your own routines that work according to your specifications.

Please don't take readline() and use it unless you are willing to understand how it works and modify it as needed for your purposes. It's not intended to be load-n-go code.

You might want to consider using fgets() which is a system-supplied API that does almost the same thing as readline(), but it's faster and doesn't have any of the problems you describe.

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.