Ask coding questions

← Back to all posts
Need help printing array sorting steps on external .txt file (C++
arsynliquid (0)

Hi there! I am new to C++ and I am trying to complete a class assignment where I need to display the sorting of an array step by step on an external .txt file. I believe I have the code working for the selection sort method but cannot figure out how to properly write the results onto the external .txt document. Can anyone help me or give me some pointers?
Any help is appreciated!