Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 9 additions & 2 deletions src/HiddenSecrets.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Scanner;

// PUT YOUR IMPORTS HERE

Expand Down Expand Up @@ -37,9 +40,13 @@ public static void getHiddenSecrets(File file) {
}

public static void main(String[] args) {
// Put your code to request a file path,
// read in a string from System.in,
Scanner scanner = new Scanner(System.in);
System.out.println("hey please input at file path");
String file = scanner.nextLine();
// read in a string from Syst
// convert that string into A Path type using Paths class,
Path path = Paths.get(file);
getHiddenSecrets(path.toFile());
// and call the getHiddenSecrets method to get the file's meta-data
// HERE
}
Expand Down