Results 1 to 2 of 2

Thread: [LUA] Randomly open a file with any name in a folder?

  
  1. #1
    Zackarak is offline -Hacks Ninja
    Join Date
    Aug 2006
    Location
    Sweden
    Posts
    710
    Rep Power
    14

    Default

    Hi!

    I need a code which randomly opens a file in a specific folder. This folder contains lots of files with same extensions but the files have different names. I want my program to randomly open 1 of these files in read mode.


  2. #2
    deadstring81 is offline -Hacks Newbie
    Join Date
    Oct 2007
    Posts
    4
    Rep Power
    0

    Default

    maybe you can rename each txt files to numbers like 1.txt - 313144.txt then randomize number and concatenate it with .txt... i aint sure about the method, just an idea...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •