im here again to influence you with another problem
im having problems im making a game mod and im havin troubles tryin to decode the file it looks as if o be in a binary format how do i extract it and output it into a normal text file.
i learnt this on another tutorial site but i always like to come here
not working and i have no clue how to change it back into Binary please helpCode:#include <iostream> #include <fstream> #include <cstdlib> using namespace std; char ch; ifstream source_file ( "C:\AGP.u", ios::binary ); //open that dreadful file ofstream output_file ( "C:\opened.txt" ); /* file to put the un-encoded version */ if (! source_file.is_open()) { cout << "File Failed to Open, Press Enter" << endl; cin.get(); return -1; } else { while ( source_file.get(ch) ) { output_file.put(ch); } cout << "file should be outputted" << endl; } system("PAUSE"); return EXIT_SUCCESS; }