Results 1 to 6 of 6

Thread: [RESOLVED] Can someone help?

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2010
    Posts
    3

    Resolved [RESOLVED] Can someone help?

    I would like help from someone to make a small program for me.
    What it would need to do it scan a .log file for a set string, then add the numbers together to provide an average/hour.

    If thats possible?

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Can someone help?

    In what language?

  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 2010
    Posts
    3

    Re: Can someone help?

    To be completely honest. I am not sure. I just would like something thats simple and small.
    I was told that VB was the best to use, but after having looked at it, I don't think I personally could do something like that myself.

    If it can read from a constantly updated text file, add together the numbers from certain sections of the file (e.g. you have gained 1,000 XP) and then display the average result, I would be happy.

    I hope that would explain it better?

  4. #4
    Lively Member
    Join Date
    May 2009
    Posts
    69

    Re: Can someone help?

    Go do some reading on writing to/from files. It is actually very easy. You'll just have to run a loop for each line that takes the string, removes the non-numbers and adds it to a string using something like:
    Code:
    mystring += "+1234"
    Then when all the lines are ran through and the values recorded, simply run through the string to count the number of + signs, add the numbers together using the trim command to a new variable then dividing the result by the number of + signs for an average.

    I know it seems complex but it's actually rather easy. If you need more help just ask.

  5. #5
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: Can someone help?

    How much will you pay..???

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  6. #6

    Thread Starter
    New Member
    Join Date
    Jan 2010
    Posts
    3

    Re: Can someone help?

    I will have a look. Thanks.

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