php-windows Digest 29 Sep 2006 10:34:38 -0000 Issue 3046

Topics (messages 27182 through 27182):

Re: Problems with fscanf [WORKAROUND] fgetc
        27182 by: German Piqué

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 ---
mmm... let me guess...

you're saying that I must do something like this:

$argo = fgets($fileID,sizeof($file))

And then work with the string?

What do you mean by "using {} syntax"? Are you talking about regular
expressions or what?

Thanks.


2006/9/28, Alex Turner <[EMAIL PROTECTED]>:

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

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--- End Message ---

Reply via email to