need some help on little issue im having. I have 2 programs and I am writing an interface to link the 2 of them in MC VC 6 MFC. There is an input text file to input data for the second program. My dialog interface saves the input text file and then executes the program. Here is where my probelm lies, the program uses the previously saved data. I can open the text file and see that the correct data is in there and if i run the program manually it works perfectly but when I write the text file, close the text file and execute the program all in the one code the code uses previously saved input data. Has anyone any ideas on how I can get around this or on what exactly is going on. Thanks in advance.