Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

277
Visualizações
Loading a local file from a local javascript file in the browser

I want to do something like this:

Open file:///C:/stats/analysis.html in the browser
C:\stats\analysis.html includes ./analysis.js
C:\stats\analysis.js loads each file in ./csvs/ and adds the number of lines to a tally (stupid but easy example)
C:\stats\csvs\ is a folder containing several files to be analysed

From what I gleaned from other questions here, it seems that require.js would make that possible if the files to be read were JSON files, but I have not found mention of how to do this for regular text files without requiring the user to "upload" the files through the <input type="file"> dialogue.

I'm choosing locally stored browser JS because the browser is already there to interpret the language (no additional installation of an interpreter needed), it works without internet (because it's locally stored), and you can look at the source code whenever you want (unlike the binaries of compiled languages).

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda