replaced 'fopen_s' with 'fopen'

should compile on linux