hello all,
i am new and in need of assistance. i am trying to convert the contents of a .txt to ASCII values and save it as a separate .txt file. im not sure how to do this. can anyone help me?
You're misunderstanding several concepts here. Forget about ASCII completely, just erase it from your mind.
Files are made up of bytes. You can interpret a file however you want - be it as text, or as a bunch of numbers, but the content is the same either way.
I'd suggest you may find the get() function useful for reading one character at a time from the input file. Then you simply need to output that char as an int, and repeat. http://www.cplusplus.com/reference/istream/istream/get/