hi Ganesh, i've attached a report that parses out the .txt file you are using. to open the report, extract the contents and change the .txt extension to .rpt.
the method to connect to these types of structured files that there is no driver that crystal can use that will define the format is to:
1) bring in the .txt file as one field that is a char 256 or larger.
2) then you use a series of formulae to first create a usable string that can be converted to an array
3) and then parse out that string in individual formulae that will act as the database fields.
report creation steps:
1) create a new ODBC (32 bit) connection using the Microsoft Text Driver...name the dsn "nonxmlsource" so that you can use this dsn with the attached sample
2) define the structure of the text datasource as follows...one single Field (F1) that is 256 characters long...essentially you are saying that each entire line in the text file is a single record for the singular field F1.
3) now have a look at the attached report...have a look at the report's record selection formula to see how it eliminates any lines that don't contain the data
4) second, have a look at the 1_FieldArray formula which creates a usable string that will be consumed later. this formula eliminates everything except for the values you need later and sets up the string as a character separated string.
5) look at the individual formulae on the report that consume the string created in the fieldarray formula. they take the character separated string and use the split function to grab the appropriate piece.
cheers,
jamie