Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

271
Vistas
Is there a way to pull data from a txt file and make it update everytime the txt file is updated?

Is there a way to pull data from a txt file and make it update everytime the txt file is updated? I'm using the following code in my program and it will find the file and display its content fine but when I update the txt file, the program does not update the new text.


function OnFileLoad() 
{
    var file = document.getElementById("FileReader").files[0];
     
    var fileDisplayArea = document.getElementById("FileContent");
    if (file.type.match('text.*|image.*|application.*')) 
    {
        console.log('hello. we are inside the function')
        var reader = new FileReader();
          
        reader.onload = function (e) 
        {
          fileDisplayArea.innerText = reader.result;
        }

        reader.readAsText(file);
    } 
    else 
    {
        fileDisplayArea.innerText = "File not supported!"
    }
}
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda