how can you make a string equal to a stream from a txt file?
my code is somewhat like the aboveCode:#include <iostream> #include <string> #include <fstream> using namespace std; int main(){ string yay; ofstream a ("yay.txt"); a<<"stringystring!"; istream at ("yay.txt"); yay=getline(a, line); }