changed file string to c-string