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 c2097c9..46c2cd4 100644 Binary files a/out/production/HeadFirstJavaExamples/Main.class and b/out/production/HeadFirstJavaExamples/Main.class differ diff --git a/out/production/HeadFirstJavaExamples/ReadAFile_C14.class b/out/production/HeadFirstJavaExamples/ReadAFile_C14.class index bee6e1a..f3e7c77 100644 Binary files a/out/production/HeadFirstJavaExamples/ReadAFile_C14.class and b/out/production/HeadFirstJavaExamples/ReadAFile_C14.class differ 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);