What is ‘a’ mode for fopen() function used for?
‘a’ is for Open for writing only; place the file pointer at the end of the file. If the file does not exist, attempt to create it.
What method is used for opening file or URL?
fopen()
fopen ( string $filename , string $mode [, bool $use_include_path = false [, resource $context ]] )
What is function feof(resource $ handle)
feof — Tests for end-of-file on a file pointer and returns Boolean.
What does the fgetc() function do?
String fgetc( resource $handle) Gets character from file pointer
What is the use of the function file_exists() ?
file_exists ( string file name)— Checks whether a file or directory exists.