(In Java)
public void readCommands(String filepath):
//Takes a String input corresponding to the filepath of a .txt file. Reads the commands specified in the file and then prints the corresponding result of the commands.