一次性读出文件内容的函数是?
A: file_put_contents
B: file_get_contents
C: fread
D: fwrite
A: file_put_contents
B: file_get_contents
C: fread
D: fwrite
举一反三
- 以下函数可以对文件进行读取的是( )。 A: fread() B: fgetc() C: file_get_contents() D: file_put_contents()
- 以下fread函数的调用形式中,参数类型正确的是() A: fread(unsignedsize,unsignedn,char*buffer,FILE*fp) B: fread(char*buffer,unsignedsize,unsignedn,FILE*fp) C: fread(unsignedsize,unsignedn,FILE*fp,char*buffer) D: fread(FILE*fp,unsignedsize,unsignedn,char*buffer)
- The file was marked "confidential" because A: it contained all the details of cost of manufacture, specifications and measurements. B: the design and material used for the products was very new and the contents of the file were secret. C: the rival firms sought to get it into their hands and copy it easily.
- php向文本文件写入内容,应该采用哪个文件操作函数?() A: fclose() B: fwrite() C: fopen() D: file()
- 以下哪一个函数可以将文件内容读取出来,并逐行存入数组中。 A: file_get_contents B: file C: fgets D: fgetc