C言語のfgets
http://hitorilife.com/fgets.php
#include <stdio.h>
char * fgets( char *row , int len , FILE *fp );
■戻り値:
ファイルポインタfpから1行、またはlenバイト読み込んでその先頭アドレスを返す。
全行を読み込んだ場合、又はエラー時にNULL(\0)を返す。
参考URL;
http://hitorilife.com/fgets.php
http://hitorilife.com/fgets.php
#include <stdio.h>
char * fgets( char *row , int len , FILE *fp );
■戻り値:
ファイルポインタfpから1行、またはlenバイト読み込んでその先頭アドレスを返す。
全行を読み込んだ場合、又はエラー時にNULL(\0)を返す。
参考URL;
http://hitorilife.com/fgets.php