hi Experts,
Can anyone pls throw light on this error ?
An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in STUB_CREATOR.exe
Additional information: Exception from HRESULT: 0x800A0036 (CTL_E_BADFILEMODE)
This is the line that creates the error
Dim f As New Scripting.FileSystemObject
starter = f.OpenTextFile(stub_path.Text + "\" + cpp_file, Scripting.IOMode.ForWriting)
I have just previously opened the file for writing. but however i have closed the textstream with which i was writing into the file. am i doing anyth worng here ?