The
first five characters from the testFile.txt file
are now stored inside $theData. You could echo this
string, $theData, or write it to another file.
If you wanted to read all the data from the file, then you
need to get the size of the file.
The filesize
function returns the length of a file, in bytes, which is just what we
need.
The filesize
function requires the name of
the file that is to be sized up.
All photograph,logos, articles, comments and trademarks -- etc in this site are property of their respective owners.All the rest (c) 2006 by PhpMyanmar.com.