1. What is the advantage of reading and writing to an external file to interact with a user instead of using Scanner to receive input from the user?

2. Is Moore’s law still in affect? If yes, will it continue? If no, when and why did it stop?

3. What is wrong with the following code fragment?

BufferedReader reader = new BufferedReader(“myFile.txt”);

line = reader.readLine();

while (line != null) {


line = reader.readLine();