001package org.kuali.ole;
002
003import java.io.BufferedReader;
004import java.io.File;
005import java.io.FileReader;
006import java.io.IOException;
007
008/**
009 * Created by IntelliJ IDEA.
010 * User: pvsubrah
011 * Date: 4/2/12
012 * Time: 4:26 PM
013 * To change this template use File | Settings | File Templates.
014 */
015public class FileUtilForRawMarc {
016    public String readFile(File file) throws IOException {
017        BufferedReader reader = new BufferedReader(new FileReader(file));
018        String line = null;
019        StringBuilder stringBuilder = new StringBuilder();
020        String ls = System.getProperty("line.separator");
021        while ((line = reader.readLine()) != null) {
022            stringBuilder.append(line);
023        }
024        return stringBuilder.toString();
025    }
026}