Opening a Stream?
I need help opening a stream. Sorry. I'm new to C++.
1 2 3 4 5 6 7 8 9
|
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
cout << "Hi there. Please enter a file name."
string file_name;
cin >> file_name;
fstream stream(file_name, ios::in | ios::out);
|
The first line below is basically what I have to do.
Open stream S(F), int i = 1, Init Tree T
while(i<=k)
read S from k = 0 to k == end
read i characters char* chars
T.add(chars)
k+=i
i++
What does open stream s mean?
Topic archived. No new replies allowed.