/,">")}function escape_re(a){return a.replace("?","\\?").replace("[","\\[").replace("]","\\]").replace("(","\\(").replace(")","\\)").replace("{","\\{").replace("}","\\}").replace("-","\\-").replace("+","\\+").replace("*","\\*").replace(".","\\.").replace("^","\\^").replace("$","\\$")}function files_selected(a){V.loaded||initial_check();a||(a=files_selected.arguments.callee.caller.arguments[0]);V.files=a.target.files;V.fi=-1;a=[];for(var b=0,c;c=V.files[b];b++)V.files[b].sizestr=formatBytes(c.size),a.push('
',escape(c.name),' '+V.trn.openfile+" ");for(document.getElementById("filelist").innerHTML=""+V.trn.filesel+" "+a.join("")+"
";V.fc.firstChild;)V.fc.removeChild(V.fc.firstChild);document.getElementById("readbts").style.display="none"}function f3(a){a=V.files[a];var b=new FileReader;b.onload=function(a){return function(b){var e=document.createElement("span");e.innerHTML=[' '].join("");document.getElementById("list").insertBefore(e,null)}}(a);b.readAsDataURL(a)}function add_listener(a,b){V.listeners[a]||(V.listeners[a]=[]);V.listeners[a].push(b)}function update_blocksize(){var a=parseInt(document.getElementById("stabyte").value),b=parseInt(document.getElementById("endbyte").value);V.blocksize=Math.abs(b-a);0>=V.blocksize&&(V.blocksize=V["def-blocksize"])}function readBlob(a,b,c){document.getElementById("fileinfo").innerHTML=' '+V.trn.filename+" "+escape(a.name)+' '+V.trn.filetype+" "+(a.type||"---")+' '+V.trn.filesize+" "+(a.size+"B ("+a.sizestr+")")+' '+V.trn.filemod+" "+a.lastModifiedDate.toLocaleDateString()+" ";var d=b;0>d?d=0:d>=a.size&&(d=a.size-1);var e=c;0>e?e=0:e>=a.size&&(e=a.size-1);V.file_start=d;V.file_stop=e;b=new FileReader;b.onloadend=function(a){a.target.readyState===FileReader.DONE&&(a=a.target.result+" ",a=a.replace(//g,">"),V.fc.innerHTML=a,document.getElementById("stabyte").value=d,document.getElementById("endbyte").value=e,document.getElementById("bsizei").innerHTML="["+V.trn.block+": "+formatBytes(e-d)+"] "+V.trn.stabyte+": "+formatBytes(d),fireE("readBlob-end"))};a=a.slice(d,e);b.readAsBinaryString(a)}function fileopen(a){if(void 0===a)a=V.fi;else if(a===V.fi)return;V.fc.style.display="block";for(var b=0;b=V.files[a].size&&(c=V.files[a].size-1),V.file=V.files[a],readBlob(V.files[a],b,c));calcBSize()}function read_block(a){update_blocksize();var b=V.file_start;switch(a){case 1:b=0;break;case 2:b-=V.blocksize;break;case 3:b=0===V.file_stop?0:b+V.blocksize;break;case 4:b=V.file.size-1-V.blocksize}readBlob(V.file,b,b+V.blocksize);document.getElementById("snext").style.display="none";document.getElementById("scancel").style.display="none";document.getElementById("srocinfo").style.display="none"}function dosearch(a){if(!V.searching&&a&&0!=a.length){document.getElementById("searchtxt").disabled=!0;document.getElementById("searchbut").disabled=!0;document.getElementById("snext").style.display="none";document.getElementById("scancel").style.display="inline-block";document.getElementById("srocinfo").style.display="inline";document.getElementById("stime").style.display="none";V.st1=(new Date).getTime();V.sreadsofar=0;V.scancel=!1;var b=V.fc.innerHTML;if(V.sneedle)var c=new RegExp(''+escape_re(V.sneedle)+" ","g"),b=b.replace(c,V.sneedle);b=b.replace(/</,"<");b=b.replace(/>/,">");V.sneedle=a;V.sroc.innerHTML="";0!==a.length&&(V.sstarted_byte=V.file_start,V.sfile_start=V.file_start,V.sblocksize=Math.max(V.blocksize,V["def-blocksize"]),0<=b.indexOf(a)?(V.sfound_needle=!0,fireE("search_end")):(V.searching=!0,V.stxt="",a=V.file.slice(V.sfile_start,V.sfile_start+V.sblocksize),V.sreader.readAsBinaryString(a)))}}function calcBSize(){var a=parseInt(document.getElementById("stabyte").value),b=parseInt(document.getElementById("endbyte").value)-a,c=document.getElementById("bsizei");V.blocksize=b;c.innerHTML="["+V.trn.block+": "+formatBytes(b)+"]["+V.trn.stabyte+": "+formatBytes(a)}function formatSecs(a){return 60>a?a+"s":Math.round(a/60)+"m"}function formatBytes(a){var b=a;1024>a?b+="B":1048576>a?b=Math.round(b/1024)+"KB":1073741824>a?b=Math.round(b/1048576)+"MB":1099511627776>a?b=Math.round(b/1073741824)+"GB":0x4000000000000>a&&(b=Math.round(b/1099511627776)+"TB");return b}function snext(){V.searching||(V.fc.innerHTML="",V.file_start+=V.sblocksize,dosearch(V.sneedle))}function add2SHis(a,b,c,d,e,g){var f=document.getElementById("shtbl");f.parentNode.style.display="block";f=f.getElementsByTagName("tbody")[0].insertRow();f.insertCell().appendChild(document.createTextNode(b.toLocaleTimeString()));f.insertCell().appendChild(document.createTextNode(g.name));f.insertCell().appendChild(document.createTextNode(a));f.insertCell().appendChild(document.createTextNode(c));f.insertCell().appendChild(document.createTextNode(d));f.insertCell().appendChild(document.createTextNode(e))}function scancel(){V.scancel=!0}function gotofound(){window.location.href="#found_"+V.sfoundi;++V.sfoundi;V.sfoundi>=V.sfoundimax&&(V.sfoundi=0)}; Open Large Text Files When opening large files with the standard file editor, your computer will likely freeze or say "this file is too large for Notepad to open". This web app will let you read large, giant, huge, monster, rebel text, xml or log files fast. This web app makes use of modern web standards to open files with Javascript only. It has been tested to work well in Windows, Mac, Linux, Android and iOS with files of any size.
Select one or more files at a time from your file system. Open the file you want to view in the viewer. By default the viewer will display blocks of 10,000 bytes at a time. This can be customized. Change Log 2016-02-27: Search funcionality now available. This is something you guys have been asking for. Type something in the input field, click the search button and the app will start searching by reading the selected file by blocks of "n" bytes at a time. The block of bytes is defined by the difference between "starting byte" and "ending byte" input fileds.
Search history When File Term Starting Byte Ending byte Occurences