Re: Problem on fread!
| From: | Jason Wong | Date: | Tue, 14 May 2002 06:01:37 +0000 |
| Subject: | Re: Problem on fread! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-97495@lists.php.net to get a copy of this message | ||
On Tuesday 14 May 2002 13:56, Jack wrote:
> Dear all
> I had a problem with fread function!
> I had a text file containning a date, so inside the text file, it was
> something look like this : 05032002
> then now i want to read this file but want to seperate the dd -mm-yyyy, so
> i want to get the first two digit as the (day), then nex two as the (month)
> and last four as (year) to display in my "INPUT BOX".
>
> How i can read a file by telling it how much digit i want?
fread() allows you to specify how many bytes you want to read.
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
Never underestimate the bandwidth of a station wagon full of tapes.
-- Dr. Warren Jackson, Director, UTCS
*/