Alright, I hate to ask this, because I know its been asked hundreds of times before, but I could not come up with anything really useful in a search. I'm trying to read a string from a text file, but alas, no luck. Here's what i've got:

Code:
#include <fstream>
#include <iostream>
#include <string>
#include <stdlib>

using namespace std;

int main()
{
ifstream(liscense);
liscense.open("regfile.txt");
while(!liscense.eof())
{
 getline(liscense,line);
}
cout<<liscense<<endl;
system("pause");

return 0;
}
I'm getting nothing for output, and the file does contain data. Any suggestions?

Thank you in advance.