now file stream uses c-string as file name parameter