Subversion Repositories SmartDukaan

Rev

Rev 507 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 507 Rev 786
Line 20... Line 20...
20
 * @author rajveer
20
 * @author rajveer
21
 *
21
 *
22
 */
22
 */
23
public class FileUtils {
23
public class FileUtils {
24
	
24
	
25
	public static String read(String filename) throws Exception {
25
	public static String read(String filename) throws IOException  {
26
		
26
		
27
		File f = new File(filename);
27
		File f = new File(filename);
28
		if(!f.exists()) {
28
		if(!f.exists()) {
29
			System.out.println(filename + " - does not exist");
29
			System.out.println(filename + " - does not exist");
30
			throw new FileNotFoundException();
30
			throw new FileNotFoundException();