Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

i need help with a fairly simple vb program

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
i need to read a file containing one word per line, and an unknown number of lines into an array, i then need to sort the words and count them to find out which are the top ten words used in the file, i then need to print the top ten, i am only allowed to use shell or quick sort, and i only can use sequential or binary searches. an example file would be the entire contents of moby dick in a file one word per line. I have no idea how to code this prigram, or where even to start, if somebody can help me i would really aprreciate it
 
You can FileSystemObject COM Component or VB's Open function to open the text file. Then you can read the contents of the file and put words in the array and do the processing. Although it works, it could be much better if you exported your text file into a database (this will be so easy by using DTS of SQL Server). Then performing the processing using DBMS engine. (I know that there may be some restrictions on the method that this task should be performed)
Mohammad Mehran Nikoo, MCP
mohmehran@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top