You seem very impressed with 'parse the file in "oneline"'. It is not impressive at all. It's exceptionally difficult to read, a maintenance nightmare, and extremely error-prone. I strongly recommend you avoid code like this.
kudos to kcott!
From On Coding Standards and Code Reviews, three sobering guidelines to keep in mind
before trying to outdo an office colleague in a clever one-liner contest:
- Correctness, simplicity and clarity come first. Avoid unnecessary cleverness.
- Favour readability over brevity.
- Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.