Hi,
>In VFP, I could embed a file into the EXE and then using STRTOFILE(FILETOSTR(Myfile), newfile) to export it out to reality. What's the best approach to doing the same thing under .NET?
Add the file as an embedded resource in your project then something like:
using (System.IO.StreamWriter sw = new System.IO.StreamWriter("Outfile.txt"))
{
sw.Write(ProjName.Properties.Resources.ResourceName);
}
HTH,
Viv