#native_company# #native_desc#
#native_cta#

one line file read

By Steven Rebello
on August 19, 2002

In order to avoid the hassle of doing a fopen, fread etc, you can read a file using the following one line:


$contents = implode("",@file( $filename ) );

Many may already know this, just thought it would help those who don’t.

HTH

steven