ChangeTopLineTXTFile
From scripting
global proc ChangeTopLineTXTFile(string $Path, int $NewValue) { //Nick Pisca 0001d, string $Path = "c:\\mayacount.txt"; //ChangeTopLineTXTFile "c:\\mayacount.txt" 3; string $exampleFileName = ( $Path ); string $s; $fileId=`fopen $exampleFileName "w"`; string $ConvStr = string($NewValue); fwrite $fileId $ConvStr; fclose $fileId; }
Related Functions: GetTopLineTXTFile
More information on strings and naming, read pages 28-37 in YSYT.