Hello donna,
If you are trying to print a file with the PrintTextFile function, you
do need to close the file handle beforehand or you will get a file
access error. If you instead already have the content of the text
file in a buffer, potentially the buffer you pass to fwrite, you can
instead pass this buffer to the PrintTextBuffer function before/instead
of writing it to a file.
Hope that helps.
Wendy L
LabWindows/CVI Developer Newsletter