How would one go about reading in a line of characters from a file. First the program reads in an integer from the file. That number indicates how many characters to read in in
#include #include int main() { ifstream f("file.txt",ios::in); int n; f >> n; char string[n]; f.getline(string,n); cout<
This gives output off the following string in file.txt.
file.txt