File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -55,19 +55,23 @@ private boolean LoadSelectedFile() throws Exception {
55
55
// lines of files
56
56
String lines ;
57
57
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 );
60
60
61
61
// Reader Buffer is Ready to Read
62
62
BufferedReader input_pipe = new BufferedReader (file_reader );
63
63
64
- while ( (lines =input_pipe .readLine ())!=null ){
64
+ /*
65
+ while( (lines=input_pipe.readLine())!=null){
65
66
System.out.println("[+] Opening File");
66
67
//System.out.print("Start-");
67
68
//System.out.print(lines);
68
69
//System.out.print("-End");
69
70
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
71
75
input_pipe .close ();
72
76
return true ;
73
77
}
You can’t perform that action at this time.
0 commit comments