题目:任选一种语言编程实现一个小程序, 该程序的输出结果是其本身,不要用下面的方法:
int main(void)
{
char buf[10];
int fd;
fd = open("filename", O_RDWR);
while(read(fd, buf, 10) > 0)
write(2, buf, 10);
return 0;
}
/*******************************************/
/*******************************************/