현재 위치: > 함수 카테고리 모음> file_get_contents

file_get_contents

전체 파일을 문자열로 읽으십시오
이름:file_get_contents
분류:파일 시스템
사용 언어:php
한 줄 설명:파일을 문자열로 읽습니다.

实例

<span class="token php language-php"><span class="token delimiter important"><? php</span>
<span class="token keyword">echo</span> <span class="token function">file_get_contents</span> <span class="token punctuation">(</span> <span class="token string double-quoted-string">"test.txt"</span> <span class="token punctuation">)</span> <span class="token punctuation">;</span>
<span class="token delimiter important">?></span></span>

输出 :

 테스트 텍스트가있는 테스트 파일입니다.
유사한 함수
  • 파일을 주어진 길이로 잘라냅니다 ftruncate

    ftruncate

    파일을주어진길이로잘라냅니다
  • 전체 파일을 문자열로 읽으십시오 file_get_contents

    file_get_contents

    전체파일을문자열로읽으십시오
  • 파일의 형식 입력 fscanf

    fscanf

    파일의형식입력
  • 연결에 대한 정보를 얻으십시오 linkinfo

    linkinfo

    연결에대한정보를얻으십시오
  • 주어진 파일 이름이 디렉토리인지 확인하십시오 is_dir

    is_dir

    주어진파일이름이디렉토리인지확인하십시오
  • 파일 권한을 얻습니다 fileperms

    fileperms

    파일권한을얻습니다
  • 주어진 파일 이름이 쓸 수 있는지 확인하십시오 is_writable

    is_writable

    주어진파일이름이쓸수있는지확인하십시오
  • 파일의 마지막 액세스 시간을 가져옵니다 fileatime

    fileatime

    파일의마지막액세스시간을가져옵니다