my 2nd prog, i intend on adding to it next so that it manipulates the data, see what cool things i can make it do....anyways, just looking for some feedback again on my prog, does it suck :) ? Thx in advance
#include <iostream>
#include <fstream>
#include <vector>
using namespace std;
class WordRead
{
public:
WordRead();
~WordRead();
void EnterName();
void LoadFile();
private:
char ch;
char theFile[1000];
ifstream myFile;
vector<char> load;
};
WordRead::WordRead()
{
}
WordRead::~WordRead()
{
}
void WordRead::EnterName()
{
cout << "Type in the text file path you wish to read: ";
cin >> theFile;
}
void WordRead::LoadFile()
{
myFile.open(theFile);
for(int i = 0; !myFile.eof(); i++)
{
myFile.get(ch);
load.push_back(ch);
cout << endl << "char " << i << ": " << load[i];
}
myFile.close();
}