TurboCommons-Java/.turboBuilder/Utils.js
function loadFileAsString(path, replaceWhiteSpaces){

	var file = new java.io.File(path);
	var fr = new java.io.FileReader(file);
	var br = new java.io.BufferedReader(fr);

	var line;
	var lines = "";

	while((line = br.readLine()) != null){

		if(replaceWhiteSpaces){

			lines = lines + line.replace(" ", "");

		}else{

			lines = lines + line;
		}
	}

	return lines;
}
function loadFileAsString(path, replaceWhiteSpaces){

	var file = new java.io.File(path);
	var fr = new java.io.FileReader(file);
	var br = new java.io.BufferedReader(fr);

	var line;
	var lines = "";

	while((line = br.readLine()) != null){

		if(replaceWhiteSpaces){

			lines = lines + line.replace(" ", "");

		}else{

			lines = lines + line;
		}
	}

	return lines;
}
function loadFileAsString ( path , replaceWhiteSpaces ) { var file = new java . io . File ( path ) ; var fr = new java . io . FileReader ( file ) ; var br = new java . io . BufferedReader ( fr ) ; var line ; var lines = "" ; while ( ( line = br . readLine ( ) ) != null ) { if ( replaceWhiteSpaces ) { lines = lines + line . replace ( " " , "" ) ; } else { lines = lines + line ; } } return lines ; }
Utility methods used by TurboBuilder
 
Load all the file contents and return it as a string
Utility methods used by TurboBuilder Load all the file contents and return it as a string