Add the FileSystem class to jlib
This commit is contained in:
parent
abea3a6885
commit
f982baa481
1 changed files with 12 additions and 0 deletions
12
jlib/FileSystem.java
Normal file
12
jlib/FileSystem.java
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
package jlib;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
|
import java.io.FileNotFoundException;
|
||||||
|
import java.util.Scanner;
|
||||||
|
|
||||||
|
public class FileSystem {
|
||||||
|
public static Scanner readFile(String path) throws FileNotFoundException {
|
||||||
|
File f = new File(path);
|
||||||
|
return new Scanner(f);
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue