Deprecated: Array and string offset access syntax with curly braces is deprecated in /mnt/hep_web/hep_web/member/n-kota/dokuwiki/inc/init.php on line 542
====== ファイル入出力 ======
C++というよりC like な章かも
----
===== FILEポインタを使う =====
* #include が必要。C++ だと#include
==== 読み込み ====
FILE *fp;
fp = fopen("filename.txt", "r" );
if( fp == NULL ){
printf("File do not exist.\n");
return -1;
}
fclose( fp );
==== 書き込み ====
----
===== ifstream, ofstreamを使う =====