Hi conny,
Do you want to save opj to the same folder of ASCII file? If so, import ascii file to one worksheet, keep the worksheet active, and run the following codes:
#define MAX_SIZE 255
void Get_ASCII_Path()
{
Worksheet wks = Project.ActiveLayer();
if( wks )
{
WorksheetPage wksPage = wks.GetPage();
char szBuffer[MAX_SIZE];
LT_get_str("page.info.system.import.FilePath$", szBuffer, MAX_SIZE);
out_str("ASCII File: " + szBuffer);
out_str("Path: " + GetFilePath(szBuffer));
}
}
Iris