What you mean with file comments? Just a file with comments? Or comments in a maya file?
This is the command to write a file:
// Write some data into a file
//
$exampleFileName = ( internalVar -userTmpDir + "example.tmp" );
$fileId=fopen $exampleFileName "w";
fwrite $fileId "Hello there\n";
fclose $fileId;
-
internalVar -userTmpDir : is to get the directory of the windows temp.
- example.tmp the name of the file to write...
- "Hello there\n" is the content you want to write. Here you write what you want...
It