At a guess, without trying it out
$fp = fopen("your file") or echo "Cant open your file";
$tmp = fread($fp,1024);
preg_match("/(.{8}).(.{5})/",$tmp,$matches);
then $matches[1] will have the first part
and $matches[2] will have the second
note: $matches[0] = whole preg'd text
"Sonjaya" <[EMAIL PROTECTED]> wrote in message
000301c21763$2c10b9d0$c800a8c0@sicute">news:000301c21763$2c10b9d0$c800a8c0@sicute...
> i want read some tex like this
>
> here contens file text
>
> 1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ
>
>
> 1. i want read from first left until eight caracter (12345678 <--
> caracter i cant read )
> it can be use fread
> 2. i want read 5 from nine (9) caracter from left ( 0ABCD <--the
> caracter must i read )
> so anybody can help me
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php