The practice prompt is as follows:
Write a program that reads the list /users/calendow/assignments/shortest-word and prints out the single shortest word in it.
Here is what I have so far:
#include<iostream>
#include<fstream>
using namespace std;
int main()
{
ifstream inputFile("/users/calendow/assignments/shortest-word");
return 0;
}
So my first guess is to open the file to find the shortest word. It would probably be best if I follow the path to open the file and see what the list contains. How do I do that?
Secondly where do I go from here? I am completely lost. Any help is appreciated.