Ok so I want to have the user imput a name of a file to decode it. How would I do that?
EX:
cin>>fill
ifstream in (fill)
Zssffssz
-4
Junior Poster
Recommended Answers
Jump to PostFirst of all you need to define file stream
#include <fstream>
Next you need to declare the file reference
ifstream infile ("filename.txt");//this is the name of the input file ofstream outfile ("filename2.txt"); //this is the name of output file
then only you can read …
All 7 Replies
Cross213
-5
Posting Whiz in Training
Zssffssz
-4
Junior Poster
Cross213
-5
Posting Whiz in Training
Cross213
-5
Posting Whiz in Training
Zssffssz
-4
Junior Poster
Zssffssz
-4
Junior Poster
limaulime
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.