bool del = false; char byte[8]; FILE *file = fopen( "full_path,", "b" ); if( file == NULL ) goto a; fread( byte, sizeof(char), 8, file ); if( byte[0] == '<' ) del = true; fclose( file ); if( del == true ) Remove( full_path ); a:と上のように fopen しているのですが
このとき char full_path[256]; にはディレクトリ名+ファイル名という内容が格納されています
ファイルが存在するかも確認しましたが、このディレクトリ名+ファイル名では fopen に失敗します
指定したディレクトリ下のファイルをオープンするにはどのような方法を使えばいいのでしょうか?
VC++6.0
WindowsXP です