i want to read from file and assing to variable
Posted on 2003-02-19
I want to read from file and assing to variable in int format. For that i wrote bellow mentioned code.
char string = "Th";
stream = fopen("DUMMY.TXT", "r");
fseek(stream, 0, SEEK_SET);
fgets(ch, strlen(string), stream);
it's working fine individually. but when i put it in another file out of which i am making dll then when i am
running it it gives sharing acess violation in fgets function.
Can any one help me is there any other logic when making dll of it?
Thanks in advace,