Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 random array generate
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Velocity




PostPosted: Thu Nov 24, 2011 4:32 pm   Post subject: random array generate

how do i make my array read words from a txt file? im making a hangman game and i need to have the array read a random word from a txt file that i have created, but how would i import that file into the program and make it randomly generate it? +bits to helper
Sponsor
Sponsor
Sponsor
sponsor
Aange10




PostPosted: Thu Nov 24, 2011 4:48 pm   Post subject: RE:random array generate

You forgot the part where you tell us the problem, what you've tried and show us some code.
Raknarg




PostPosted: Thu Nov 24, 2011 4:49 pm   Post subject: RE:random array generate

As a matter of fact, there is an entire section dealing with file reading here: http://compsci.ca/v3/viewtopic.php?t=12972
Insectoid




PostPosted: Thu Nov 24, 2011 5:41 pm   Post subject: RE:random array generate

You already asked this question in this thread. No need to make another!
Velocity




PostPosted: Mon Nov 28, 2011 8:20 am   Post subject: RE:random array generate

thanks alot guys Smile
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: