Answers for "read c++ to read integers from a file descriptor"

C++
1

c++ read integers from file

int main() {
	
    ifstream file("o.txt");
  	
    int num;
    while (file >> num){
      //whatever you need to do
    }
  	
}
Posted by: Guest on October-05-2020

Browse Popular Code Answers by Language