Skip to content

Instantly share code, notes, and snippets.

@xodhx4
Last active February 18, 2020 13:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xodhx4/1a1c47c70294783c7257bc8b2632de2a to your computer and use it in GitHub Desktop.
Save xodhx4/1a1c47c70294783c7257bc8b2632de2a to your computer and use it in GitHub Desktop.
[In java, make file to Inputstream] For ps, make Filestream as Inputstream #Inputstream #Filestream
class FileReader {
public static void main(String[] argc) {
InputStream inputStream = FileReader.class.getClass().getResourceAsStream("/RootFromResourceFile/b1018.txt");
// inputStream = System.in
Scanner scanner = new Scanner(inputStream);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment