readfile = new XML(); readfile.ignoreWhite = true; readfile.onLoad = function(ok) { if (ok) { var str = readfile; win.htmlText = str; } }; readfile.load("test.txt");