//ファイルの内容を全て文字列で読み込む $fileName = "foo.txt"; $str = file_get_contents($fileName); $fp = fopen("baa.txt", "w");//書き込み専用で開く fwrite( $fp, $str ); fclose( $fp );
投稿日: 2009-12-19 02:20:24
//ファイルの内容を全て文字列で読み込む $fileName = "foo.txt"; $str = file_get_contents($fileName); $fp = fopen("baa.txt", "w");//書き込み専用で開く fwrite( $fp, $str ); fclose( $fp );