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