Ok so I am working with ham radio log files that are in what is called ADIF format using adf file ext. They are a text file with different ext. However these text files can be rather Hugh, I read a post from 2011 about splitting the file which made some sense and I could get byte size of file and do something to divide into X amount of files or even Variables. Things that I don't know such as how many bytes of data can a C type variable hold and then I can put in by byte size. ?1024? How can I read through the data if record info is shifted to next variable. I have used file_pointer.seek(180) to get past the header
This is the format of the adif file and not all lines are there so some records have more or less lines of data. there is a <eor> tag at the end of each record and I was originally going to just loop a string scanner function to extract the data but then I realized that I can't load the while file into string data because it's too big.
Pointers ideas guidance all very much appreciated. Is there a way to import the format to an alpha table?
Code:
first line various text form software <LOG_PGM:9>NetLogger <LOG_VER:5>3.1.5 <PROGRAMID:9>NetLogger <PROGRAMVERSION:5>3.1.5 <EOH> <Call:4>N4UP <QSO_Date:8>20170106 <Time_On:6>033017 <App_NetLogger_ClubMemberId:4>9203 <Comment:6>#9203# <Name:5>PETER <Band:3>80m <RST_Sent:2>59 <RST_Rcvd:2>59 <Mode:3>SSB <Freq:5>3.832 <QTH:8>Victoria <State:2>VA <Cnty:12>VA,LUNENBURG <DXCC:3>291 <Gridsquare:4>FM07 <App_NetLogger_Preferred_Name:5>Peter <Operator:6>KM4OUS <QSL_Via:22>M T N eQSL-LoTW-Direct <Country:13>United States <Address:38>PETER Po Box 1306 Victoria, VA 23974 <App_NetLogger_Award_Status:6>MIL:AF <App_NetLogger_Net:17>OMISS 80m SSB Net <App_NetLogger_Club:5>OMISS <Station_Callsign:6>KM4OUS <eor>
Pointers ideas guidance all very much appreciated. Is there a way to import the format to an alpha table?
Comment