Re: SearchFile used with txt files... is this kosher????


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]

Posted by Barbara Brazil on June 05, 2015 at 07:32:08:

In Reply to: SearchFile used with txt files... is this kosher???? posted by Bob A on June 05, 2015 at 05:38:41:

Bob:

Yes, SearchFile is designed to work with text files. Note the qualification at the bottom of the documentation:
"While SearchFile may be used on a text file if it contains a hex 0 character it will cause the search to stop at that character in the file.". This is because the file server treats the file data as one long C string and a hex 0 indicates the end of a string.

Regardless of file type, SearchFile works in chunks of 10mb of file data at a time. This is so the search won't hog the file server for really big files. CFAM automatically takes care of making repeated calls to the file server on your behalf until the search processes the entire file or finds the requested match. Each call to the file server does request a maximum of 10mb of memory for the search but this buffer is supposedly released at the end of each iteration.

If this explanation doesn't answer your question, you'll have to be more specific or provide an example for me to test.





Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

What is the name of the main Signature System's Product?  

Comments:

Optional Link URL:
Link Title:
Optional Image URL:

You may attach up to 5 files to your followup (see below):





Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]