你可能感兴趣的试题
文件属主可执行File2 文件属主可写File2 同组用户可写File2 同组用户可执行File2 其他用户可读File2
Open "file1.dat" For Input As#1 Open "file1.dat" For Append As#1 Open "file1.dat" For Output As#1 Open "file1.dat" For Random As#1 Len=20
File Stream Pipe Stream Random Stream Filter Stream
ifstream *pFile=new ifstream("c://ctest//test.txt"); ifstream file("c://ctest//test.txt"); ifstream file;file.open("c://ctest//test.txt"); ifstream file("c:/etest/test.txt");
File InputStream File OutputStream File Random AccessFile
file stream pipe stream random stream filter stream
ifstream file("d:/shiti/test.txt"); ifstream file("d://shiti//test.txt"); ifstream file;file.open("d://shiti//test.txt"); ifstream* pFile=new ifstream("d://shiti//test.txt");
Open"file1.dat" For Input As#1 Open"file1.dat"For Append As#1 Len=20 Open"file1.dat" For Random As#1 Open"file1.dat" For Random As#1 Len=20
将文件指针指向文件的第一个字符后面 将文件指针指向文件的最后一个字符前面 将文件指针指向文件的最后一个字符后面 会导致seek()方法抛出一个IOException
FileInputStream in=new FileInputStream("file.dar");in.skip9.;int c=in.read(); FileInputStream in=new FileInputStream("file.dar");in.skip10.;int c=in.read(); FileInputStream in=new FileInpmStream("file.dar");int c=in.read(); Random AccessFile in=new RandomAceessFile("file.dar");in.skip9.;int c=in.readByte
Open "file l .dat" For lnpu't As#1 Open”file l .dat" For Append As#1 Open”file1.dat" For Output As#1 Open”file1.dat" For Random As#1 Len=20
FileInputStream in=new FileInputStream("fildar");iskip9.;int c=iread(); FileInputStream in=new FileInputStream("fildar");iskip10.;int c=iread(); FileInputStream in=new FileInpmStream("fildar");int c=iread(); Random AccessFile in=new RandomAceessFile("fildar");iskip9.;int c=ireadByte
File Stream Pipe Stream Random Stream Filter Stream
File stream Pipe stream Filter stream Random stream
ifstream file("d:/shiti/test.txt"); ifstream file("d://shiti//test.txt"); ifstream file;file.open("d://shiti//test.txt"); ifstream* pFile = new ifstream("d://shiti//test.txt");
ifstream file("d:cre/test.txt"); ifstream file("d:/cre//test.txt"); ifstream file;file.open("d:/cre//test.txt"); ifstream*pFile=new ifstream("d:/cre//test.txt");
FILE*fp; fp=fopen("sttxt","r") FILE * fp; fp=fopen(sttxt, FILE *fp; fP=fopen("stu,txt","wb") FILE *fp; fp=fopen("sttxt",w
Open"file1.txt" for Output As #1 Open "file1.txt" for Input As #1 Open "file1. txt" for Random As #1 Open "file1. tx",for Binary As #1