Exporting random values in range 1-6 to txt
Posted: Tue Feb 02, 2021 12:48 pm
Hi,
I am attempting to export random value in range 1-6 into txt file on desktop. I am getting File not found error message. Any idea what might be wrong here? Thanks.
I am attempting to export random value in range 1-6 into txt file on desktop. I am getting File not found error message. Any idea what might be wrong here? Thanks.
Code: Select all
LoopCounter = 1;
Result = 1;
OutputFile = 'C:\Users\Vaclav.Novacek\Desktop\test.txt';
WHILE(LoopCounter <= 5);
Result = Result + rand();
LoopCounter = LoopCounter + 1;
END;
Output = NumberToString(Result);
AsciiOutput(OutputFile, Output);