You can optimize it all you want, in the end it's still naive because it's 
**wrong** : What if data spans multiple lines? What if there is some escape 
mechanism via `\`? What if the data can be encoded via `%xx` (byte in hex). 
There are not many file formats around that have no escape/quoting mechanisms. 
Either you write a lexer/parser or you use a premade library for the format in 
question. 

Reply via email to