// ファイルをテキスト読み込みモードで開く int file = open( "world.txt", "r" ) ; // ファイル行数を取得 int n = countln( file ) ; string line ; for( int i=0; i