Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
実行する前にファイル内のバイトシーケンスを置き換えたいので、たとえば3B 01403Fから0000103Fになります。Googleで解決策を探していましたが、C#の回答しかありません。
バイナリファイルのバイトシーケンスを置き換えます
助けてくれてありがとう。
C#の回答はここでも機能するはずです。
void replace(long pos, std::string filename, std::string replacement) { std::ofstream out(filename.c_str()); out.seekp(pos); out.write(replacement.c_str(), replacement.size()); }