FILE Methods
Reading and writing
directory(), collect(), read(), write()File operations
remote(), output(), download(), version()
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.