Scan and analyse the given file to gather information for ascii import into worksheets. This function will look read the file to look for consistent structure by trying different separators that will yield the largest number of columns.
int AscImpReadFileStruct( LPCSTR lpcszFilename, ASCIMP * pASCIMPstruct, DWORD dwCntrl = 0 )
Returns 0 if no error, otherwise an error code is returned
EX1
void AscImpReadFileStruct_ex1() { ASCIMP ascimp; string strFile = GetOpenBox("*.dat"); if(AscImpReadFileStruct(strFile,&ascimp)==0) { out_int("# of header lines= ", ascimp.iheaderLines); out_int("# of columns = ", ascimp.iNumColumns); } }
origin.h