I use the follow function to generate a text file:

FileNumber = FreeFile

Open "c:/Myfile" For Output As #FileNumber
Write #FileNumber, "This is a sample."
Close #FileNumber

this file work fine at my machine after go
through the VB set up procedure. but the problem is that after the program is installed in an another machine, the "Myfile" is no where to be found. anybody has idea what is going wrong?

Thanks a lot.