Problem with Internet Transfer Control

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

    Problem with Internet Transfer Control

    Hello, i'm trying to download a text file;



    The Internet Transfer Control maybe downloading the whole file but only the
    first line of the file is being saved?

    any help would be great.
    Finbar.


  • CajunCoiler \(http://www.cajuncoiler.tk\)

    #2
    Re: Problem with Internet Transfer Control

    I had a similar problem at first, grabbing web pages... try using a
    byte array, like this...

    Dim buffer() As Byte
    Dim f As Integer
    Inet1.AccessTyp e = icUseDefault
    f = FreeFile
    buffer() = INet1.OpenURL(" http://www.remoteserve r.com/remotefile.txt" ,
    icByteArray)
    Open "LocalTextFile. Txt" For Binary Access Write As #f
    Put #f, , buffer()
    Close #f

    "Finbar" <here@there.com > wrote in message
    news:cj2erh$1p6 h$1@otis.netspa ce.net.au...[color=blue]
    > Hello, i'm trying to download a text file;
    >
    > www.float.com.au/download/20040915.txt
    >
    > The Internet Transfer Control maybe downloading the whole file but only[/color]
    the[color=blue]
    > first line of the file is being saved?
    >
    > any help would be great.
    > Finbar.[/color]


    Comment

    Working...