I'm trying to read a text file via standard input but I'm not entirely sure where to begin when there's an unknown amount of data. I'm somewhat familiar with using getline from a text with a given amount of data. When reading a text file with a known data size I would just use something like
char file[250];
while (cin.getline(file,250)){ //etc
}
However when I don't know what to put in either of the parameters I'm pretty much lost. How should I approach this? Should I be using a different function instead? Thanks.