Opening and reading a file

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Angelo

    #1

    Opening and reading a file

    i need in VB6 to open a file, read it, close it, open it, write it, close
    it.

    how to do it?


  • Steve Gerrard

    #2
    Re: Opening and reading a file


    "Angelo" <Dit-Is-Een-Nep-Mail-Adress@Lekker-Puh.us> wrote in message
    news:44919a0a$0 $28347$e4fe514c @dreader11.news .xs4all.nl...
    [color=blue]
    >i need in VB6 to open a file, read it, close it, open it, write it, close it.
    >
    > how to do it?
    >[/color]

    Believe it or not, the sequence of commands you will use is
    Open
    Input
    Close
    Open
    Write
    Close

    Why don't you look them up in your help file, try it out, see how far you get,
    and post your code if you get stuck?


    Comment

    • Angelo

      #3
      Re: Opening and reading a file

      Hey Steve Gerrard,

      Thankyou for you're code!
      And about the help, i didn't installed MSDN tough.

      Angelo.


      Comment

      • Angelo

        #4
        Re: Opening and reading a file

        Oh sorry i see it was no code.

        I wrote:[color=blue]
        > Thankyou for you're code![/color]


        Comment

        • J French

          #5
          Re: Opening and reading a file

          On Fri, 16 Jun 2006 12:49:08 +0200, "Angelo"
          <Dit-Is-Een-Nep-Mail-Adress@Lekker-Puh.us> wrote:
          [color=blue]
          >Oh sorry i see it was no code.[/color]

          For a VB5 Help file get it at:



          VB6 just has a few more bells and whistles


          Comment

          • Angelo

            #6
            Re: Opening and reading a file

            I am using VB6.. it it different?

            "J French" <erewhon@nowher e.uk> schreef in bericht
            news:44929ed9.9 4859562@news.bt openworld.com.. .[color=blue]
            > On Fri, 16 Jun 2006 12:49:08 +0200, "Angelo"
            > <Dit-Is-Een-Nep-Mail-Adress@Lekker-Puh.us> wrote:
            >[color=green]
            >>Oh sorry i see it was no code.[/color]
            >
            > For a VB5 Help file get it at:
            >
            > www.jerryfrench.co.uk/utils/vb5help.zip
            >
            > VB6 just has a few more bells and whistles
            >
            >[/color]


            Comment

            • J French

              #7
              Re: Opening and reading a file

              On Sat, 17 Jun 2006 11:02:07 +0200, "Angelo"
              <Dit-Is-Een-Nep-Mail-Adress@Lekker-Puh.us> wrote:
              [color=blue]
              >I am using VB6.. it it different?[/color]

              Not for Files - or most 'basic' things

              VB6 has a few extra things above VB5
              - but you can regard VB5 Help Files as incomplete VB6 Help Files


              Comment

              • sashi
                Recognized Expert Top Contributor
                • Jun 2006
                • 1749

                #8
                Hi Angelo,

                show us of what u have completed so far.. here we do not do the coding for u but, instead we help u to solve ur coding problem.. good luck..

                Comment

                Working...