Class

File

Package: io Author: Benoît Sautel <ben.popeye@phpboost.com> Nicolas Duhamel <akhenathon2@gmail.com> Desc: This class represents a text file which can be read and written. Located at io/filesystem/File.class.php
FileSystemElement
Extended by File
Methods summary
public
# __construct( string $path )
public
public string
# get_name_without_extension( )
public string
# get_extension( )
public string
# read( integer $start = 0, integer $len = -1 )
public string[]
# read_lines( )
public
# write( string $data )
public
# append( string $data )
public
# erase( )
public
# close( )
public
# delete( )
public
# lock( boolean $blocking = true )
public
# unlock( )
public
# flush( )
public integer
# get_last_modification_date( )
public integer
# get_last_access_date( )
public integer
# get_file_size( )
public
# open( mixed $mode )
Methods inherited from FileSystemElement
change_chmod(), exists(), get_name(), get_path(), get_path_from_root(), is_writable()
Constants summary
integer READ 0x1
#
integer WRITE 0x2
#
integer APPEND 0x3
#