Posted 02 July 2013 - 04:14 PM
Haven't found this anywhere on the forums… so I apologize ahead of time it it's out there.
Im trying to generate a random file name and then write to it using a simple math.random where it generates a number say 1-100. Then it opens a file using that random number and writes two lines of text from 2 variables stored in my program.
So if my variables are say "Boudragon" and "computercraft" then it will make a file with the random number as its filename and add those two lines of text in that file. Im sure this is super easy but its just bugging the heck outta me! LMAO!
Im trying to generate a random file name and then write to it using a simple math.random where it generates a number say 1-100. Then it opens a file using that random number and writes two lines of text from 2 variables stored in my program.
So if my variables are say "Boudragon" and "computercraft" then it will make a file with the random number as its filename and add those two lines of text in that file. Im sure this is super easy but its just bugging the heck outta me! LMAO!