Hi,
I'm trying to read a file in with and assigne the stream to a char * type. I've manged it using the cin.get returning type char, but am having run-time problems returning a char *. For example,
char *pStream = "file.txt";
ifstream from(pStream);
from.open(pStream);
cin.get(pStream, FileSize, '\n');
However, the pStream in cin.get(pStream, FileSize, '\n'); does not seem to work at run-time, as it just hangs.
Txs