Corrected file open syntax confision with C version