I have text file "1.txt" and there are these below hex number in text file
"3688D9CC844E3F755"
If I want to add another hex number like "12B5B46CA713" at new line. How to write code to do that? Thank you.
I have text file "1.txt" and there are these below hex number in text file
"3688D9CC844E3F755"
If I want to add another hex number like "12B5B46CA713" at new line. How to write code to do that? Thank you.
Last edited by ooosawaddee3; 10-19-2002 at 06:11 PM.
Start by opening a file stream... then all will become clear to you
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]
Use this:
ifstream OpenFile(char *filename, int open_mode);
set the open_mode to ios::app
which will append what to write to the end of the file.