Given an  ifstream object named  input, associate it with a file named hostdata by opening the file for input.

Given an  ifstream object named  input, associate it with a file named hostdata by opening the file for input.

LANGUAGE: C++

CHALLENGE:

Given an  ifstream object named  input, associate it with a file named hostdata by opening the file for input.

SOLUTION:

input.open("hostdata",ios::in); 

Add comment