function readFile(filePath) {
	var fileObj = new File();
	var content;
	try {
		fileObj.Open(filePath, 0, 0);
		try {
			content = fileObj.Read();
		} catch(e) {
			throw "UnableToReadFile(" + filePath + "):" + e;
		} finally {
			fileObj.Close();
		}
	} catch(e) {
		throw "FileError(" + filePath + "):" + e;
	}
	return content;
}
/*
 Parse a text file and return the contents in a string
*/
Parse a text file and return the contents in a string
Parse a text file and return the contents in a string
function readFile(filePath) {
	var fileObj = new File();
	var content;
	try {
		fileObj.Open(filePath, 0, 0);
		try {
			content = fileObj.Read();
		} catch(e) {
			throw "UnableToReadFile(" + filePath + "):" + e;
		} finally {
			fileObj.Close();
		}
	} catch(e) {
		throw "FileError(" + filePath + "):" + e;
	}
	return content;
}
function readFile ( filePath ) { var fileObj = new File ( ) ; var content ; try { fileObj . Open ( filePath , 0 , 0 ) ; try { content = fileObj . Read ( ) ; } catch ( e ) { throw "UnableToReadFile(" + filePath + "):" + e ; } finally { fileObj . Close ( ) ; } } catch ( e ) { throw "FileError(" + filePath + "):" + e ; } return content ; }
Parse a text file and return the contents in a string
Parse a text file and return the contents in a string