If the content of the file is to be created by the CVI program (such as test results, configuration information and so on), you can use the following instructions:
fH = OpenFile ("filename.txt", VAL_WRITE_ONLY, VAL_APPEND, VAL_ASCII);
// Create the string to be written to the file
WriteLine (fH, string, -1);
CloseFile (fH);
Or, if you don't want to write line-by-line, you can use WriteFile (fH, string, strlen (string));
When you want to intruce a linefeed in the file you must write a "\n" to it.
Hope this helps
Roberto