/**
 * Get the contents of a file.
 * 
 * @param  bool $lock Acquire an exclusive lock on the file while proceeding to the reading.
 *
 * @return string|false The file contents or false on failure.
 */
public function get($lock = false)

Examples

$content = $filesystem->file('/foo/1.txt')->get();

$sharedContent = $filesystem->file('/foo/2.txt')->get(true);

Getting Started

Methods

Filesystem
File
Directory