public int escapingBackslash = 0;
private static String text;
public static XMLObject readFromFile( String fileName ) {
TextFile file = TextFile.read( fileName );
text = "";
version = 0;
while( true ) {
String string = file.readLine();
if( string == null ) break;
text += string;
if( version == 0 ) {
int quote = text.indexOf( "\"", text.indexOf( "dwlab_version" ) );
version = Service.versionToInt( text.substring( quote + 1, text.indexOf( "\"", quote + 1 ) ) );
}
}
file.close();
textPos = 0;
return readObject( new StringWrapper( "" ) );
}