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:
In reply to Re^2: parse a file TXT similar to XML
by eyepopslikeamosquito
in thread RESOLVED - parse a file TXT similar to XML
by x-lours
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |