Results 1 to 4 of 4

Thread: textfile length

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2003
    Posts
    419

    textfile length

    Hello, I have a form with a textbox and a timer. The timer is set to an interval of 600. When the timer fires, it loads C:\messages.text into a textbox. How can I have it do the following:

    Check the linecount of the file, if it changed since the last time it opened..add the current time to the last line in the file. If that last line is blank...move back one until the current line isnt blank...then save the textfile.
    Last edited by LostAngel; Jul 18th, 2005 at 10:10 AM.
    Code:
    If LostAngel.Tag = "Programming" then
       LostAngel.Caption = "Awake"
    Else
       LostAngel.Caption = "Dreaming of Code"
    End If

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