How to overwrite a file


Hello everyone,

I need to open .txt file that will store a matrix. For example, a = { {0,0,1}, {3, 4, 0}, {0,0,0}}

I want to overwrite the file with updated matrix values.

Is there any way to do that in C++?

Would anyone please suggest me a code for that?

Thanking you.
You do realise that you're posting in the one forum on this site that is explicitly NOT for C++ questions, yes?
Topic archived. No new replies allowed.