delimiter - Determining delimeter for a structured section in a text file using a hex viewer -


i have text file structured data. after each text block says "end" , continues onto next block. looking @ hex viewer see

0a:45:4e:44:0a:20:20:20:20:20:20:20:20:20 

which translates

?end?          

notice 9 spaces.

how write delimeter in code?

"end\n\n\n \n \n \n \n \n \n" 

this doesn't seem work. missing?

most likely,

"\nend\n         " 

however forgot mention language you're using. did \ns from?


Comments

Popular posts from this blog

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

c++ - Convert big endian to little endian when reading from a binary file -