I am trying to write to a file a struct of the following type:
typedef struct ResFileStr_
So i create the file with fp=fopen("test.res",wb") and then i write a struct with fwrite(&rec,sizeof rec,1,fp).
The rec struct data is something like this:rec.ImagePath="C:\\di1\\dir2\\file.jpg" rec.RecognitionMethod=2 and so on.
Then when i try to open it and read it all fields are the way they should be except the ImagePath field.
I fp=fopen("test.res","rb") and i fread(&rec,sizeof rec,1,fp) and rec.imagePath=@#^saa//566\\\5656^^$%233..."something like this.Any ideas.
Thanks In Advance.
Sotiris Zegiannis,Greece,TUOA,Computer Science Department.