Here you can find the source of getResourceString(String filename)
public static String getResourceString(String filename) throws FileNotFoundException
//package com.java2s; //License from project: Open Source License import java.io.File; import java.io.FileNotFoundException; import java.util.Scanner; public class Main { public static String getResourceString(String filename) throws FileNotFoundException { String rootPath = "./Oracle/src/test/resources/co/digitaloracle/"; String string = new Scanner(new File(rootPath + filename)).useDelimiter("\\Z").next(); return string; }//ww w .j av a2 s . co m }