열려 있는 파일의 파일 ID로, 정수로 지정됩니다. fgets를 사용하여 파일에서 한 라인을 읽으려면 먼저 fopen을 사용하여 파일을 열고 파일의 fileID를 가져와야 합니다.
데이터형: double
nchar — 문자의 수 정수
다음 라인에서 읽어오는 문자의 개수로, 정수로 지정됩니다. fgets는 다음 라인의 최대 nchar자를 반환합니다. nchar에서 지정된 문자 수가 새 줄 문자 또는 파일 끝 마커 다음에 오는 문자를 포함하면 fgets는 새 줄 문자 또는 파일 끝 마커 다음에 오는 문자는 반환하지 않습니다.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.