Re: Re: Problems with fscanf [WORKAROUND] fgetc
| From: | Alex Turner | Date: | Thu, 28 Sep 2006 18:22:52 +0000 |
| Subject: | Re: Re: Problems with fscanf [WORKAROUND] fgetc | ||
| References: | 1 2 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-27181@lists.php.net to get a copy of this message | ||
Stanislav Malyshev wrote:
German Piqué wrote: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.comWell, 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.