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
*/


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

Reply via email to