DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 7 of 7

Threaded View

  1. #1
    Join Date
    Apr 2005
    Posts
    53

    Reading and writing lines from a text file...

    Hi there...
    I am trying to make a winsock control send a line from a text file once every minite.

    so if the text file had 5 lines, it would send a line every minite then go and start from the top again...

    First of all, I want to make it so that when a form loads, the text box in it will say the same as the text in the text file.

    Then If the user wants to edit the text file, or add a line to it, it can be saved....

    Then I want the winsock to send each line from the text file individually at an interval of 1 minite.

    Do I can do it with textboxes and a timer, eg
    timerinerval being 60000,
    Code:
       TIMER1
        wsk.senddata text1.text
        timer1.enabled = false
        timer2.enabled = true
    
        TIMER2
       wsk.senddata text2.text
       timer2.enabled = false
        timer1.enabled = true
    that then just keeps sending the text in the text boxes over and over, (which is what i want) but That can't save the text in the textboxes and limits the amount of messages by the amount of text boxes you have....

    i would be grateful of any help

    Jenks
    Last edited by Jenks; 05-21-2005 at 08:45 AM.

Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links