Question How to read data from file?

raysefo

Well-known member
Joined
Jul 21, 2010
Messages
207
Programming Experience
Beginner
Hi,


I have a file which I want to make search according to some criterias and then if it is matched , I will output those data.

Lets say I want to search with barcode and it is matched how can I get some data (GAME,CPN,DRAW,TERMINAL TIME) from the file???


Thanks in advance.


Best Regards

Here is the sample file

Sample file format: (there may be multiple of those format below in a single file - Bold ones are the search criterias)
========================================================================================
GAME -> 4101 CPN -> 47449 DRAW -> 821 TEAM ->(0)
INPUT METHOD -> Slip TYPE -> Event
-------------------------------PLAY TRANSACTION DATA-------------------------------
TERMINAL_ID -> 12000101 TRANSACTION -> 152175 TERMINAL TIME -> 30/01/2011 08:42:55
USER -> 120001 CRC -> 8AF035B9 SYSTEM TIME -> 30/01/2011 08:42:59
MULTIPLE DRAWS -> 1 REMAINING DRAWS -> 1 MULTIPLIER -> 2 COLUMNS -> 2
REMAINING ADRAWS -> 0 ADVANCED DRAWS -> 0 AMOUNT -> 42.00
START -> 821 LAST -> 821
STATUS ->Played (001) BARCODE -> 1234567890 1234567890 1234567890 PILOT[0]
Std Event Min Selection Group
335 03 F :2 ---
337 03 F :2 ---
338 03 F :1 ---
345 03 F :1 ---
349 03 U/O:Over ---
354 04 F :2 ---
360 03 U/O:Over ---
355 03 F :1 ---
362 03 F :1 ---
371 03 U/O:Over ---
372 03 F :1 ---
Requests -> 11
Req_Mult -> 001
Revision -> 1 Approval -> 0 Played -> 11

========================================================================================
 
Back
Top