Hi Thomas,
the problem is not a EOF problem. Can you please explain the following construct:
if (Load_Save_Info.RunFlag == 0 )
{
MakePathname (filename,DEFAULT_CHANNEL_TERRESTRIAL, filename);
strcpy(FileToRead,filename);
}
else
FileSelectPopup("","*.txt",".txt", "Select file",VAL_SELECT_BUTTON,0,0,1,0,FileToRead );
if (DLL == ON)
{
FileSelectPopup ("", "*.txt", ".txt", "Load file", VAL_LOAD_BUTTON,0, 0, 1, 0, filename); //(*)
String_Length_All = StringLength (filename);
}
You always read the "FileToRead" whatever the enquiry returns. That means if you change the line (*) to
FileSelectPopup ("", "*.txt", ".txt", "Load file", VAL_LOAD_BUTTON,0, 0, 1, 0, FileToRead);
it works. I've tested in LabVIEW.
Regards
Kai Kratt
NI