in reply to Re^2: To read files from two dir
in thread To read files from two dir

You persist in giving us snippets which show none of the variables you're getting in your error messages. You were told this two days ago (Re^3: To read files from two dir).

On what planet do you believe that repeatedly posting unrelated truncated code samples could be useful in diagnosing your problems? It's possible that because of the block structure in SOME OTHER CODE YOU HAVEN'T SHOWN that adding that new for with its BLOCK could be changing the scoping somewhere down the line and invalidating or hiding a variable declaration. But we can't know that because no one has seen enough code with supporting context so we're stuck with generalities and handwaving guesses.

Help us help you.

/me mutters something about porcine singing . . .

The cake is a lie.
The cake is a lie.
The cake is a lie.

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.