FILE Methods

output()

Display a file's content and set the page's mime() type accordingly.

null output( string file [, int stream = 1024 ])

Return

This method will stop the program's execution and display the file-content. Please note that this function will produce an error if the file doesn't exist. So always make sure that the file you are trying to display actually exists!

Parameter
Description
fileFile name an directory
streamStreaming speed in kilobytes, so the default streaming chunk size is one megabyte.

Click HERE to display file content

1
$FILE->output($FILE->directory("test.txt", 3, 3))
RETURN: FALSE