Re: getting message from file

From: Date: Tue, 09 Mar 2004 07:25:16 +0000
Subject: Re: getting message from file
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-179880@lists.php.net to get a copy of this message
My data file is sth like: 2.208 2.18 2.415 2.283 2.234 2.155 2.389 2.201 2.204 2.181 2.43 2.285 2.231 2.164 2.387 2.197 2.2 2.179 2.429 2.29 2.225 2.181 2.385 2.195 2.196 2.178 2.424 2.291 2.225 2.213 2.386 2.19 ........ I would like to get these data in order to plot graph. I've tried to use fgets() and then convert them from string back into array...but it seems doesn't work~ Thanks, Kenneth "Jason Wong" <php-general@gremlins.biz> wrote in message news:200403090002.54972.php-general@gremlins.biz... > On Monday 08 March 2004 09:04, Kenneth wrote: > > > I have a problem on getting content from a data file (data.txt). > > I have many numbers in the file...all of them are about 2.XXX, and I need > > them to plot a graph. > > What does your data file look like? Show a few sample lines. > > > But I just can't read them out as a integer. > > What code did you use? > > -- > Jason Wong -> Gremlins Associates -> www.gremlins.biz > Open Source Software Systems Integrators > * Web Design & Hosting * Internet & Intranet Applications Development * > ------------------------------------------ > Search the list archives before you post > http://marc.theaimsgroup.com/?l=php-general > ------------------------------------------ > /* > "Have you lived here all your life?" > "Oh, twice that long." > */

« previous php.general (#179880) next »