Made openFile() function, moved to file.c along with getLineCount().