make puppeteer read and download everything in a .txt file

So im trying to get puppeteer to download every file in a .txt file but i can wrap my mind around how?

    **Code**:
    main.js
    const puppeteer = require('puppeteer');
    const path = require('path');
    const downloadPath = path.resolve('./secretpath');
    const linereader = require('line-reader');
    
    async function fileDownload() {
    
        const browser = await puppeteer.launch({headless: false});
        const page = await browser.newPage();
        
        linereader.eachLine('./path/to/file.txt',(line,last)=>{
            console.log(line)
        })
        const linetogo = line;
    
    
        await page.goto(
            line, 
            { waitUntil: 'networkidle2' });
    
        await page._client.send('Page.setDownloadBehavior', {
            behavior: 'allow',
            downloadPath: downloadPath 
        });
        await page.waitForTimeout(1500)
        await page.click('#download-url')
        console.log("clicked")
    
    
    
   
    fileDownload();
    

example of my .txt file downloadtext.txt

https://downloadfile.com/fanpictures
https://downloadfile.com/fanpictures1
https://downloadfile.com/fanpictures2
https://downloadfile.com/fanpictures3
https://downloadfile.com/fanpictures4
https://downloadfile.com/fanpictures5
https://downloadfile.com/fanpictures6
https://downloadfile.com/fanpictures7
https://downloadfile.com/fanpictures8
https://downloadfile.com/fanpictures9

    

There is no error im just trying to get it too go in the .txt file grab the first link download it then grab the second link download it and so on but i cant wrap my mind around how and im super tired just need to get this one thing done.

Ive tried most thing i could think of im not perfect in javascript but decent and need to get this thing done before tommorow for a little project im working on!