So basically I have to write a txt file with numbers like:

```
1
2
3
4
5
6
7
8
9
10

```

And then take each of those and add them to each other to get a grand total of 55 and then 
average them 55/10 to get my answer.

Well I can easily write the numbers to a txt file using:

```
PrintWriter outputFile = new PrintWriter("output.txt");

    outputFile.println("1");
    outputFile.println("2");
    outputFile.println("3");
    outputFile.println("4");
    outputFile.println("5");
    outputFile.println("6");
    outputFile.println("7");
    outputFile.println("8");
    outputFile.println("9");
    outputFile.println("10");
    outputFile.close();

```

but how do I read them back in and convert each of them to a number where the sum of them all is 55? Most attempts of mine just read all of them back in or read them in and end up doing weird calculations like

```
3
5
9
14
20
27
ect.

```