'When i try to see which line fits what i'm searching for, it doesn't return the number of the line

my code:

servinfo = fs.readFileSync("prefix.txt").toString().split("\n")
servinfo.every(line => {
  if (line.startsWith(msg.guild.id)) {
    var c = i
    return false
  } else {
    i++
    return true
  }
})

}
console.log(c)

prefix.txt file:

bruh
387307100298280970?!?!?!lmao
387307049656123392?!?!?!?

I search for the line with 3392 in it but console keeps giving me 0

I alredy tried using .forEach but it gives me similar results
(Sorry if i didn't do a good job at explaining the issue, it's my first time using stackOverflow :D)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source