Reading in text file characters

From: Date: Wed, 15 Jan 2003 15:17:13 +0000
Subject: Reading in text file characters
Groups: php.windows 
Request: Send a blank email to php-windows+get-17885@lists.php.net to get a copy of this message
The following code reads in a text file one line at a time. for ($k=0; $k<=count($readfile)-1; $k++) { $fields = split("\t",$readfile[$k]); echo nl2br("$fields[0]<br>"); } The problem is that it seems to strip the empty spaces out. My text file is formatted by lengths. I need to read the first 25 characters from the text file. Then read 50 more... And so on. Can anyone give my the code for reading in a certain number of characters from a text file. Thank you in advance.

« previous php.windows (#17885) next »