Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

151
Views
Get specific line from a txt file in Javascript

I have a dictionary txt file that looks like this :

Aaliyah
Aaron
Abandon
Abandoned
Abatement
Abba
Abbey
Abbott
Abbreviation
Abbreviations
Abby
...

I'm trying to write a function that looks something like getLineFrom('dictionary.txt', 6) that simply gets what is in line 6 (for example) (Abba) from the dictionary.txt file

But i don't want to load the whole dictionary (with 20k words) into javascript and then traverse that list to get to my line, I just want it to grab line X from a txt file

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!