![SOLVED: #include<fcntl.h> #include cunistd.h> #include <string.h> charx[=48 void main0 ( int f1=open("myfile.dat,OWRONLY); int f2open("myfile.dat*,OWRONLY); Iseek(f2,-1,SEEKCUR); writef2,x,strienx Assume the content of myfie.dat is 9711479, the open ... SOLVED: #include<fcntl.h> #include cunistd.h> #include <string.h> charx[=48 void main0 ( int f1=open("myfile.dat,OWRONLY); int f2open("myfile.dat*,OWRONLY); Iseek(f2,-1,SEEKCUR); writef2,x,strienx Assume the content of myfie.dat is 9711479, the open ...](https://cdn.numerade.com/ask_images/fb31aacd64c646668be77899ea67b159.jpg)
SOLVED: #include<fcntl.h> #include cunistd.h> #include <string.h> charx[=48 void main0 ( int f1=open("myfile.dat,OWRONLY); int f2open("myfile.dat*,OWRONLY); Iseek(f2,-1,SEEKCUR); writef2,x,strienx Assume the content of myfie.dat is 9711479, the open ...
![1 UNIX System Programming Files and Directories. 2 File Pointer Both read() and write() will change the file pointer. The pointer will be incremented. - ppt download 1 UNIX System Programming Files and Directories. 2 File Pointer Both read() and write() will change the file pointer. The pointer will be incremented. - ppt download](https://images.slideplayer.com/24/7584184/slides/slide_6.jpg)