Skip to content

Instantly share code, notes, and snippets.

@yusuke
Created March 20, 2014 08:10
Show Gist options
  • Save yusuke/9659326 to your computer and use it in GitHub Desktop.
Save yusuke/9659326 to your computer and use it in GitHub Desktop.
import java.io.IOException;
import java.net.URISyntaxException;
import java.nio.charset.Charset;
import java.nio.file.Files;
import java.nio.file.Paths;
public class A {
public static void main(String[] args) throws IOException, URISyntaxException {
String content = String.join("\n",Files.readAllLines(Paths.get(A.class.getResource("/a.properties").toURI()), Charset.defaultCharset()));
System.out.println(content);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment