>// Read the template file using StreamReader object. >FileInfo oFileInfo = new FileInfo(path); >StreamReader oReader = oFileInfo.OpenText(); >string stringInTemplate = oReader.ReadToEnd(); >// It is important to close the StreamReader object. >oReader.Close(); >>
string cFileName; string cContents; cFileName=VFPToolkit.dialogs.GetFile(); cContents=VFPToolkit.strings.FileToStr(cFileName);That does the same and also works very nicely.