954,517 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Hangman project

:confused: I have to modify a hangman game to open a sequential file, read thru the file and count the no. of words, generate a random no. from the file and read the word from the file corresponding to the random no. and use it in the game, as well as display the no. of the word being used from the file. I know i need to use the objStreamReader in the sub filenewmenuitem_click, but i cant figure out how to get the words to link to the game. Can someone help me??????

tekgrl
Newbie Poster
1 post since Oct 2004
Reputation Points: 10
Solved Threads: 0
 

to get words to link to the game just write a function that calls for example a text file, then in ure game code, do w/e string name u have, say word, and the name of the function u wrote(getword) ... word = getword("something.txt")

put the something.txt into ure bin folder

weazel
Newbie Poster
10 posts since Dec 2004
Reputation Points: 10
Solved Threads: 0
 

If you define the 'words' as string * max length or something where the word has a maximum length you can make it a public type and then the file problem becomes a case of reading / writing 'records' (the word public type) and getting the number of records from a file - which is well documented and extremely simple :) try a google search!

1o0oBhP
Posting Pro in Training
445 posts since Dec 2004
Reputation Points: 16
Solved Threads: 6
 

If You can send me yr hangman game and then i can let u know how andwhy u ned to use that.
My E-Mail : [EMAIL="dappa_nb@hotmail.com"]dappa_nb@hotmail.com[/EMAIL]

nimu01234
Newbie Poster
3 posts since May 2006
Reputation Points: 10
Solved Threads: 0
 

i need help with hangman ~!!!!

3250245
Newbie Poster
2 posts since Sep 2008
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You