Does the getline function ALWAYS require CIN?  ie...getline(cin, string);

What im wondering is, if a text file has been opened, does "cin" get replaced with the opened filename variable?