Take a look in Sergey's answer but keep in mind that if You (someone) open the file with Notepad FOPEN() returns a valid file handler.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.