From: 7stud -- Date: 2009-09-07T13:01:16+09:00 Subject: Re: i need to strip \n and nil Bigmac Turdsplash wrote: > require 'socket' > > host = '192.168.1.4' > port = 2000 > sock = TCPSocket.open(host, port) > > data = sock.recvfrom(999999) > destFile = File.open('/tmp/poop.exe', 'wb') > destFile.print data > destFile.close > > > Ok, just to show you what im working with... it works, but there is a > file size limit when working with recvfrom() > Skipping the basics of a language never works, does it? -- Posted via http://www.ruby-forum.com/.