Skip to content

Instantly share code, notes, and snippets.

@AntonioDiaz
Last active December 7, 2016 08:56
Show Gist options
  • Save AntonioDiaz/7e57b239e8e2f1f60a1207cafe6ca1c3 to your computer and use it in GitHub Desktop.
Save AntonioDiaz/7e57b239e8e2f1f60a1207cafe6ca1c3 to your computer and use it in GitHub Desktop.
package mypackage;
import java.io.*;
import java.util.*;
public class ThisClassName {
public static void main(String[] args) throws IOException {
InputStream inputStream = ThisClassName.class.getClassLoader().getResourceAsStream("config.properties");
Properties properties = new Properties();
properties.load(inputStream);
File file = new File(properties.getProperty("input.path") + "repeated_string.txt");
Scanner in = new Scanner(file);
// Scanner in = new Scanner(System.in);
in.close();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment