in reply to Parse cmd line args in this file

in the file parse4

You are opening the file data4.txt not parse4. Change that and you'll maybe have better luck.

Although I'd also recommend a quick read of How do I post a question effectively?

Replies are listed 'Best First'.
Re^2: Parse cmd line args in this file
by pawarr (Initiate) on Jul 22, 2016 at 09:19 UTC

    Is it fine now?

      Not really, no. Please now read How do I change/delete my post?, paying particular attention to the section headed "It is uncool to update a node in a way that renders replies confusing or meaningless". Thank you.