php-windows Digest 28 Sep 2006 18:22:58 -0000 Issue 3045

Topics (messages 27181 through 27181):

Re: Problems with fscanf [WORKAROUND] fgetc
        27181 by: Alex Turner

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
Stanislav Malyshev wrote:
German Piqué wrote:
Well, I managed to work with the spaces but using fgetc instead of fscanf.


Just as a note I think it would be much more efficient to use fgets or fread and then parse resulting string using regular expressions. Unless you have some limitations that weren't mentioned.
> Just as a note I think it would be much more efficient to use fgets or
> fread and then parse resulting string using regular expressions.
> Unless you have some limitations that weren't mentioned.

That got me thinking - how about using fgets then running over the string using {} syntax. The same code (almost) would run many many times faster (probably).

AJ

--
www.deployview.com
www.nerds-central.com
www.project-network.com

--- End Message ---

Reply via email to