All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.kuali.ole.FileUtilForRawMarc Maven / Gradle / Ivy

The newest version!
package org.kuali.ole;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;

/**
 * Created by IntelliJ IDEA.
 * User: pvsubrah
 * Date: 4/2/12
 * Time: 4:26 PM
 * To change this template use File | Settings | File Templates.
 */
public class FileUtilForRawMarc {
    public String readFile(File file) throws IOException {
        BufferedReader reader = new BufferedReader(new FileReader(file));
        String line = null;
        StringBuilder stringBuilder = new StringBuilder();
        String ls = System.getProperty("line.separator");
        while ((line = reader.readLine()) != null) {
            stringBuilder.append(line);
        }
        return stringBuilder.toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy