PSP Hacks - Forums
Go Back   PSP Hacks - Forums > Tech Talk > LUA Scripting

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 09-15-2007, 07:27 PM
Zackarak Zackarak is offline
PSP Ninja
 
Join Date: Aug 2006
Location: Sweden
Posts: 719
Zackarak User Has a Beginner Reputation
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.
__________________
Reply With Quote
  #2  
Old 10-14-2007, 12:07 PM
deadstring81 deadstring81 is offline
PSP Newbie
 
Join Date: Oct 2007
Posts: 4
deadstring81 User Has a Beginner Reputation
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...
Reply With Quote
Reply

 



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:39 PM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©