12-23-2008 09:41 AM
I am trying to harvest from data from multiple text files that I have in a folder. Is there a function in CVI that could loop through the files that contain the data I need until it has gone through them all? If not, all the files have a similar name (pucklocation.1, pucklocation.2, etc...). Is there a way I could manipulate my cPath variable that I have when I call the functions below so that it does the first one, then increments to the next one, etc...
iIsGood = FileSelectPopup( "", "*.txt", ".txt", "Load", VAL_LOAD_BUTTON, 0, 1, 1, 0, cPath );
if( iIsGood == 1 )
{
iFileHandle = OpenFile( cPath, VAL_READ_ONLY, VAL_OPEN_AS_IS, VAL_ASCII );
Solved! Go to Solution.
12-23-2008 10:16 AM
12-29-2008 02:15 AM