fix(exceptions) : change file address
This commit is contained in:
@@ -50,7 +50,7 @@ public class FileService {
|
||||
|
||||
public static String writeFile(UserEntity user) {
|
||||
|
||||
FileWriter fw = new FileWriter("D:\\ExceptionHandling\\userInformation.txt", true);
|
||||
FileWriter fw = new FileWriter("userInformation.txt", true);
|
||||
BufferedWriter bw = new BufferedWriter(fw);
|
||||
|
||||
bw.write(user.toString());
|
||||
@@ -61,7 +61,7 @@ public class FileService {
|
||||
|
||||
public static void readFile() {
|
||||
|
||||
FileReader file = new FileReader("D:\\ExceptionHandling\\userInformation.txt");
|
||||
FileReader file = new FileReader("userInformation.txt");
|
||||
|
||||
BufferedReader fileInput = new BufferedReader(file);
|
||||
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
HELLO!
|
||||
Reference in New Issue
Block a user