Reading file from internet..

Blitz3D Forums/Blitz3D Programming/Reading file from internet..

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Yeah TCP is fine, it was just a bug in my code.

Next question:
How would you write to an internet file?

I've set the file permissions on the server to be writable... but i'm still not sure if it's possible to code in blitz?
My code so far is looking like this...

connection2 = OpenTCPStream ( "www.darknimbuspro.com", 80)
If connection2
Print "Connected! Sending request..."
WriteLine connection2,"GET http://www.darknimbuspro.com//RO.txt HTTP/1.0"
WriteLine connection2, Chr$( 10 )

Print "Request sent. Waiting for reply..."

WriteLine(connection2,ClientName)
WriteLine(connection2,ClientClass)
WriteLine(connection2,Clientlvl)
WriteLine(connection2,ClientUpdated)

Else
Print "ERROR: Failed to connect to server."
EndIf

Return
EndIf
EndIf EndIf

Wend