function readTextFile(file) {
    var rawFile = new XMLHttpRequest();
    rawFile.open("GET", file, false);
    rawFile.onreadystatechange = function ()
    {
        if(rawFile.readyState === 4)
        {
            if(rawFile.status === 200 || rawFile.status == 0)
            {
                var allText = rawFile.responseText;
                showAllPosts(allText);
            }
        }
    }
    rawFile.send(null);
}
/**
 * Read a text file and display it when it's loaded
 */
Read a text file and display it when it's loaded
Read a text file and display it when it ' s loaded
function readTextFile(file) {
    var rawFile = new XMLHttpRequest();
    rawFile.open("GET", file, false);
    rawFile.onreadystatechange = function ()
    {
        if(rawFile.readyState === 4)
        {
            if(rawFile.status === 200 || rawFile.status == 0)
            {
                var allText = rawFile.responseText;
                showAllPosts(allText);
            }
        }
    }
    rawFile.send(null);
}
function readTextFile ( file ) { var rawFile = new XMLHttpRequest ( ) ; rawFile . open ( "GET" , file , false ) ; rawFile . onreadystatechange = function ( ) { if ( rawFile . readyState === 4 ) { if ( rawFile . status === 200 || rawFile . status == 0 ) { var allText = rawFile . responseText ; showAllPosts ( allText ) ; } } } rawFile . send ( null ) ; }
Read a text file and display it when it's loaded
Read a text file and display it when it ' s loaded