Given an ifstream object named input1 , associate it with a file named winterdata.txt by opening the file for reading.

Given an ifstream object named input1 , associate it with a file named winterdata.txt by opening the file for reading.

LANGUAGE: C++

CHALLENGE:

Given an ifstream object named input1 , associate it with a file named winterdata.txt by opening the file for reading.

SOLUTION:


input1.open("winterdata.txt");

Add comment