From fdb55b6e0256d5115a87f62125c240e106dc03d8 Mon Sep 17 00:00:00 2001 From: Karen Date: Thu, 1 Nov 2018 19:32:12 +0100 Subject: [PATCH] correct file name --- .idea/vcs.xml | 6 ++ .idea/workspace.xml | 58 +++++++++++++----- MyFile.txt | 11 ---- MyFile_C14.txt | 11 ++++ .../HeadFirstJavaExamples/Main.class | Bin 458 -> 458 bytes .../HeadFirstJavaExamples/ReadAFile_C14.class | Bin 1143 -> 1147 bytes src/Main.java | 5 ++ src/ReadAFile_C14.java | 2 +- 8 files changed, 66 insertions(+), 27 deletions(-) create mode 100644 .idea/vcs.xml delete mode 100644 MyFile.txt create mode 100644 MyFile_C14.txt diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml index d5878e5..28b67ac 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -1,7 +1,11 @@ - + + + + + + + + + @@ -98,6 +112,9 @@ + + + - - + - - + + + - @@ -259,6 +275,10 @@ + + + @@ -266,18 +286,26 @@ - - + + + + + + + + + + - - + + diff --git a/MyFile.txt b/MyFile.txt deleted file mode 100644 index 11f4859..0000000 --- a/MyFile.txt +++ /dev/null @@ -1,11 +0,0 @@ -STROKA 1 -STROKA 2 -STROKA 3 -STROKA 4 -STROKA 5 -STROKA 6 -7 STROKA -8 STROKA -9 STROKA - STROKA -7 STROKA sd QW s \ No newline at end of file diff --git a/MyFile_C14.txt b/MyFile_C14.txt new file mode 100644 index 0000000..425e854 --- /dev/null +++ b/MyFile_C14.txt @@ -0,0 +1,11 @@ +LINE 1 +LINE 2 +LINE 3 +LINE 4 +LINE 5 +LINE 6 +7 LINE +8 LINE +9 LINE + LINE +7 LINE sd QW s \ No newline at end of file diff --git a/out/production/HeadFirstJavaExamples/Main.class b/out/production/HeadFirstJavaExamples/Main.class index c2097c978a10774ae0cddd273581673a7255aa28..46c2cd49aa07c6c4044703119271ce15b2451964 100644 GIT binary patch delta 21 ccmX@be2RI)Y(`F21`Y-`1|9~k$x9g306Vz^cK`qY delta 21 ccmX@be2RI)Y(`FI1`Y-m1|A01$x9g306TO9ZU6uP diff --git a/out/production/HeadFirstJavaExamples/ReadAFile_C14.class b/out/production/HeadFirstJavaExamples/ReadAFile_C14.class index bee6e1a615048657c4bbc3f7a7c798ffaf7e58fa..f3e7c771db7f0a91154c84b49565717ccd959e88 100644 GIT binary patch delta 24 gcmey)@tb4AEJkiV-%7X4oYZ({LzB%58Lu$`0CeyO;Q#;t delta 20 ccmey(@ttGCEJk)N-%7X4oYc)r8Lu$`09En_)&Kwi diff --git a/src/Main.java b/src/Main.java index a0e967a..eed5649 100644 --- a/src/Main.java +++ b/src/Main.java @@ -1,6 +1,11 @@ public class Main { public static void main(String[] args) { + + // Chapter 14 ReadAFile_C14 readAFile_c14 = new ReadAFile_C14(); readAFile_c14.go(); + + // Chapter 15 + } } diff --git a/src/ReadAFile_C14.java b/src/ReadAFile_C14.java index c3c99f2..d510012 100644 --- a/src/ReadAFile_C14.java +++ b/src/ReadAFile_C14.java @@ -5,7 +5,7 @@ public class ReadAFile_C14 { public void go() { try { - File file = new File("MyFile.txt"); + File file = new File("MyFile_C14.txt"); FileReader fileReader = new FileReader(file); BufferedReader reader = new BufferedReader(fileReader);