Results 1 to 3 of 3

Thread: retreving from a file

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2004
    Posts
    24

    retreving from a file

    heres my problem I appending to a text file four values for a report I want to retrive the value after five entries (one weeks worth) and add there totals to get an average for each thus giving me a report for a week
    is it posible?
    if so can anyone give some addvice on how

  2. #2
    Frenzied Member Jmacp's Avatar
    Join Date
    Jul 2003
    Location
    UK
    Posts
    1,959
    something like

    Open "c:\file.txt" For Input As #1

    line input #1, a
    line input #1, b
    line input #1, c
    etc....
    ' then

    text1.text = e+f+g+h+i
    Last edited by Jmacp; Feb 22nd, 2004 at 10:17 AM.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Feb 2004
    Posts
    24
    can you elaborate I've attached the file
    I need place the totals on the bottom
    Attached Files Attached Files

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