David Higgs
Programmer
In Amateur Radio circles there are numerous Software Based Logbooks. There is a specification called ADIF (Amateur Data Interchange Format) which Software Authors are encouraged to follow.
In example, I have a Text File with the following content.
Text File Contents
<Callsign:5>A1ABC <name:3>Joe <frequency:8>7.163000
<band:3>40m <mode:3>SSB <qso_date:8>20170220
<EOR>
<Callsign:5>A2DEF <name:5>David <frequency:8>7.160000
<band:3>40m <mode:3>SSB <qso_date:8>20170220
<WAB_Area:4> SD55
<EOR>
<Callsign:5>A1GHI <name:4>Fred <frequency:8>7.126000
<band:3>40m <mode:3>SSB <qso_date:8>20170220
<EOR>
The format of the above is as follows:-
<Callsign:5>A1ABC
<Field Name:Length of Data>Data which gives a Field Name of Callsign and Data A1ABC (In this instance the Data = 5 Characters, it can vary in length)
Each Record in the Text File can have some or all of the Fields and the Fields could possibly be in random order.
The full specification of the ADIF file is available here.
How would I go about Importing and Converting the original Text file to achieve a Table with the following format?
Table Contents after 'Import"
Callsign Name Frequency Band Mode Date
A1ABC Joe 7.163000 40m SSB 20170220
A2DEF David 7.160000 40m SSB 20170220
A1GHI Fred 7.126000 40m SSB 20170220
Regards,
David
In example, I have a Text File with the following content.
Text File Contents
<Callsign:5>A1ABC <name:3>Joe <frequency:8>7.163000
<band:3>40m <mode:3>SSB <qso_date:8>20170220
<EOR>
<Callsign:5>A2DEF <name:5>David <frequency:8>7.160000
<band:3>40m <mode:3>SSB <qso_date:8>20170220
<WAB_Area:4> SD55
<EOR>
<Callsign:5>A1GHI <name:4>Fred <frequency:8>7.126000
<band:3>40m <mode:3>SSB <qso_date:8>20170220
<EOR>
The format of the above is as follows:-
<Callsign:5>A1ABC
<Field Name:Length of Data>Data which gives a Field Name of Callsign and Data A1ABC (In this instance the Data = 5 Characters, it can vary in length)
Each Record in the Text File can have some or all of the Fields and the Fields could possibly be in random order.
The full specification of the ADIF file is available here.
How would I go about Importing and Converting the original Text file to achieve a Table with the following format?
Table Contents after 'Import"
Callsign Name Frequency Band Mode Date
A1ABC Joe 7.163000 40m SSB 20170220
A2DEF David 7.160000 40m SSB 20170220
A1GHI Fred 7.126000 40m SSB 20170220
Regards,
David