Hi everyone I have some problem with fread and fwrite in VS2005 beta2 I have the following code, in it i generate a buffer and after assigning some values to it , i write it to a file , then i try to read it back to a new buffer which is not successful. for variable bigVal=100 i get "k=100" for writing but for reading i get "k=77" , i would be pleased if someone can help me. #include "stdafx.h" #include #include #include typedef double dtype; int _tmain(int argc, _TCHAR* argv[]) { dtype *b; int i,j,k; int bigVal; char filename[]="c:\\temp.data"; FILE *fp; bigVal=100; b=(dtype*) malloc(bigVal * sizeof(dtype)); for(i=0 ; i
H
hamsha_ir
@hamsha_ir