Skip to content

Commit 729cc44

Browse files
updating read file
1 parent 4c9fd8a commit 729cc44

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

CodeRail/FileManager.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,19 +55,23 @@ private boolean LoadSelectedFile() throws Exception {
5555
// lines of files
5656
String lines;
5757

58-
// File Reader is Ready to ready
59-
FileReader file_reader = new FileReader(infile);
58+
// File Reader is Ready to read
59+
FileReader file_reader = new FileReader(Path);
6060

6161
// Reader Buffer is Ready to Read
6262
BufferedReader input_pipe = new BufferedReader(file_reader);
6363

64-
while( (lines=input_pipe.readLine())!=null){
64+
/*
65+
while( (lines=input_pipe.readLine())!=null){
6566
System.out.println("[+] Opening File");
6667
//System.out.print("Start-");
6768
//System.out.print(lines);
6869
//System.out.print("-End");
6970
editor.append(lines);
70-
}
71+
}*/
72+
/* https://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html */
73+
editor.read(input_pipe,null); //for reading file
74+
editor.requestFocus(); //for getting focus on textarea
7175
input_pipe.close();
7276
return true;
7377
}

0 commit comments

Comments
 (0)