Results 1 to 3 of 3

Thread: Inserting data in file !!

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2002
    Location
    Mumbai
    Posts
    31

    Red face Inserting data in file !!

    I am tring to create a txt file and then inserting data into the file

    i am able to create a file using the code:
    System.Io.Cretefile("c:\New folder\ppp.txt")

    Now how do I write a data into this file.

    Please guide me !!

  2. #2
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    VB Code:
    1. Dim SW as IO.StreamWriter=New StreamWriter("C:\New Folder\ppp.txt")
    2.  
    3. SW.Writeline("bal bal bal...")
    4. '
    5.  
    6. SW.Close

    Thats all you need to do in a very easy fashion
    'Heading for the automatic overload'
    Marillion, Brave, The Great Escape, 1994

    'How will WE stand the FIRE TOMORROW?'
    Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jan 2002
    Location
    Mumbai
    Posts
    31

    Thanks Luntiva

    Ok i have done it Fine, tanku

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