Hello. I was reading a novel and ran into a sentence which is quite difficult for me to precisely interpret.

The following sentence appears in a paragraph describing "the most mundane and ordinary streets of Budapest", preceded by a sentence describing "the most mundane and ordinary passersby": Every now and then, perhaps in a hurry to overtake the single file inching along in front, one of them would step off the sidewalk, only for an entire chorus of rancorous carhorns to give the lie to any groundless hope of breaking free from the line.

The parts in bold are the ones that are giving me troubles.

What does "file" mean in this sentence?

And what does it mean for something to "give the lie to" something?

Please help.

Thank you so much in advance.
Have you never watched an inchworm?Emotion: smile "To inch," or "to inch along" is to move forward at a very slow (though usually steady) pace.
"Single file" describes people in a row, one following another.

Some of the details are not clear. Is the "single file" a line of vehicles or of people??

Okay, it's a line of mundane ordinary passersby on the sidewalk, inching along. Sometimes a single individual would step into the street, perhaps trying to get past the slow-moving walkers.

I think "overtake" is the wrong word here. "Outstrip" is probably the right one, although it's rarely used. The person who "steps off the sidewalk" is already abreast of the line of walkers, so what's to overtake?? He's actually hoping to get ahead of them.

But it would really be impossible to do so. (This is really poorly written.)

Face it, man, you're stuck in this line, and there's no way you're ever gonna get out of it!Emotion: surprise

That's the truth. To think otherwise is only a lie. If you don't believe me, try going around it! As soon as you step off the curb, all the cars in the street will start beeping their horns at you. They're only trying to tell you that you're crazy. You have no hope of breaking free of the line.

Single file.