ns_conncptofp fileId
This function writes all the content (including any embedded null characters) to the specified file.