요즘 거의 매일 질문올리는 사람입니다. -_-;;
너그러이 봐주시고요 ^^
[code:1]#include<stdio.h>
#include<unistd.h>
#include<sys/types.h>
#include<sys/stat.h>
#include<fcntl.h>
main()
{
int fd, index=0, i, j, total=0;
char buf[512];
unsigned char data[4+1];
fd=open("/dev/fd0", O_RDONLY);
lseek(fd, 1024, SEEK_SET);
read(fd, buf, 512);
for(i=3; i>=0; i--)
data[i]=*((unsigned char *)buf + index++);
data[4]='\0';