* Is there another way to open an infile and outfile? I think the problem I am having is the .c_str(). It seems like it only outputs the first string in the whole input file and forgets about the rest. **
#include <iostream>
#include <fstream>
#include <string>
#include <stdio.h>
using namespace std;
#define USE_SAVED_MARKER 0
void main()
{
string path = "c:\\projects\\qrt4\\";
string text = ".txt";
string filename;
string outfile;
cout << "Enter desired filename: ";
cin >> filename;
filename = path + filename + text;
--> ifstream in(filename.c_str());
cout << "Enter output file: ";
cin >> outfile;
outfile = path + outfile + text;
--> ofstream out(outfile.c_str());
#include <iostream>
#include <fstream>
#include <string>
#include <stdio.h>
using namespace std;
#define USE_SAVED_MARKER 0
void main()
{
string path = "c:\\projects\\qrt4\\";
string text = ".txt";
string filename;
string outfile;
cout << "Enter desired filename: ";
cin >> filename;
filename = path + filename + text;
--> ifstream in(filename.c_str());
cout << "Enter output file: ";
cin >> outfile;
outfile = path + outfile + text;
--> ofstream out(outfile.c_str());