From f982baa48199dd7847044de067f4c1478f45af53 Mon Sep 17 00:00:00 2001 From: Oliver Akins Date: Thu, 8 Dec 2022 21:51:42 -0600 Subject: [PATCH] Add the FileSystem class to jlib --- jlib/FileSystem.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 jlib/FileSystem.java diff --git a/jlib/FileSystem.java b/jlib/FileSystem.java new file mode 100644 index 0000000..557bcf7 --- /dev/null +++ b/jlib/FileSystem.java @@ -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); + } +}