I am a new user of R. 

I have some txt.gz files on the web of approximate size 9x500000.  

I'm trying to uncompress a file and read it straight to R with read.table().  

I have used this code (url censored): 

```
LoadData <- function(){

con <- gzcon(url("http://"))           
raw <- textConnection(readLines(con, n = 25000))
close(con)
dat <- read.table(raw,skip = 2, na.strings = "99.9")
close(raw)

return(dat)

}  

```

The problem is that if I read more lines with readLines, the  

program will take much more time to do what it should. 

How can I do this is reasonable time?