file IO problem may reside in char*  filename