Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 07-16-2012, 08:22 AM
Solren Solren is offline
Junior Member
 
Join Date: Jul 2012
Posts: 1
Default Parsing a binary file

Hi everyone,

I have some difficulties parsing a binary file in Delphi (XE2).
My line-by-line parsing code works for a standard text file but fails for the binary equivalent. The file wasn’t generated by me and not with Delphi although it has a quite simple structure - header with structure description (which seems to have an ASCII format in the binary file) and a tab-delimited data table.

I already tried with simple hex conversions and binary read mode although I feel that I’m going the wrong way. I’m not expecting a ready-to-go solution but at least a hint on where to start would be extremely useful.

Here is an example of the data file (both text and its binary equivalent):
https://rapidshare.com/files/1968461287/data_files.zip
Thank you for any help.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 05:04 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.