Results 1 to 2 of 2

Thread: Searching through files online??

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2000
    Location
    a
    Posts
    12

    Question

    I am looking to make a Napster like program, I already have the code for displaying what I need to, and also transfering files from one computer to another directly, but here's my plan:

    The user logs on to the program, it makes a text file and finds all of the files the user would like to share on this program.. uploads it to a server where it has the username as the filename (ex. myusername.txt), so that text files can't overwrite each other and that no two people have the same name. Now when the user goes to search for a file, it goes to the server and searches through all the text files, getting the results it needs, then returns them to the user. When the user clicks on a file.. it finds username.txt, opens it, and begins the download from the ip and the location of the users hard drive.

    All I need to know is how can i search through text files on the internet.. or maybe I could compile them into one list and search through one file. If I do that, then when the user logs off I will need to know how to delete certain lines of the text file?

    So, I guess what I am mainly asking is..

    1. How can I search through multiple files, or just one file on the internet?

    2. How can I go about deleting single user files, or certain lines from the main file (if I make it one big list)?

    3. And if I could get peoples opinion on how I should go about this whole connect/upload/search/download process?

    I am using WINSOCK to connect to other peoples computer and download certain files, but I already have that code.


    Thank You everyone for your support!
    - azpc

  2. #2
    Guest
    I would get the server keeping all the user data in a database. If the data set is large then you could use something like MS SQL Server which could index the data for fast retrieval. Using a DB would also mean that you could easily delete single rows based on any of the fields in the data.
    If you dont want to use (or do not have access to) SQL Server then you could use MS Access.
    I would suggest using the MS ADO (ActiveX Data Objects) to talk to the database.

    If you use lots of text files, it may be very very slow...

    Hope this helps.

    John.

Posting Permissions

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



Click Here to Expand Forum to Full Width