its time over but anyway i want finish this problem. I want read binary file to buffer and later i want copy this buffer to array. I'm doing like that;
int i=0;
char *buffer;
buffer=(char *)malloc(filelen+1); //filelen is length of binary file
while()
{
fread(buffer,100,1,filepointer); //filepointer is input binary file pointer,i wanna read 100 byte
strcpy(tup[i],buffer); //tup[] is char array.i want copy buffer to in this array
i++;
}
i got error at strcpy line you can not copy pointer to integer something like that.
thanx.