ChangeTopLineTXTFile

From scripting
Revision as of 05:10, 22 April 2017 by Nickpisca (talk | contribs) (Created page with " global proc ChangeTopLineTXTFile(string $Path, int $NewValue) { //Nick Pisca 0001d, string $Path = "c:\\mayacount.txt"; //ChangeTopLineTXTFile "c:\\mayacount.txt" 3; s...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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.