Simple old function to load a file into a string.
$s = loadStrFile("file.txt");
function loadStrFile($filename) {
$handle = fopen ($filename, "rb");
$contents = fread ($handle, filesize ($filename));
fclose ($handle);
return $contents;
}
Nov 09 2009
Simple old function to load a file into a string.
$s = loadStrFile("file.txt");
function loadStrFile($filename) {
$handle = fopen ($filename, "rb");
$contents = fread ($handle, filesize ($filename));
fclose ($handle);
return $contents;
}