DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Point History with Text Files

  1. #1
    Join Date
    Feb 2007
    Posts
    8

    Point History with Text Files

    Ok the members Attendance section is almost done! Thanks to you guys ^^
    I have been playing around with text opening text files now since you showed me how to open them through VB.

    My question is: How would I track member's points using a text file?

    I'm undecided on the best route to take and would very much like an opinion. Heres how the Attendance section works:
    1) User selects a Member Name from the "Member List" on the left.(lstMembers)
    2) User Adds selected Names to the "Attendance List" on the right.(lstAttendance)
    3) User Clicks on one of the three events that are taking place.
    A)Kirin - 1 point (cmdKirin)
    B)Gods - 2 points(cmdGods)
    C)Farming - 3 points(cmdFarming)
    4) Program Adds Points to each of the Member Names in the Attendance List, And saves the point Value until the next event.

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    I'm not sure I would use a single text file to record points for all members; it can be difficult to update one line in the middle of a text file. You could use a separate text file for each member, or you could store all the point values in an array and write the entire array to a file periodically.
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  3. #3
    Join Date
    Feb 2007
    Posts
    8
    Using a file for each member sounds good i think, So would i be able to create a text document using VB? Cause when the user has to add a member they goto this form. It would be nice, if the text file holding the points also contained the information on this form too i think.


Similar Threads

  1. Text Search within Word and Acrobat Files
    By neerajks in forum .NET
    Replies: 0
    Last Post: 04-26-2006, 06:19 AM
  2. text files
    By Spumbu1977 in forum VB Classic
    Replies: 3
    Last Post: 12-24-2005, 02:45 PM
  3. Replies: 0
    Last Post: 12-20-2005, 06:29 AM
  4. full text for files
    By yog in forum Database
    Replies: 0
    Last Post: 01-26-2002, 05:49 AM
  5. Replies: 1
    Last Post: 05-25-2001, 10:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center