From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt H To: 9fans@cse.psu.edu Subject: Re: [9fans] is nickle plan9 acceptable? Message-Id: <20020127144347.6a6fa5a7.matt@proweb.co.uk> In-Reply-To: <20020127115500.D9BF93F40B@quanstro.net> References: <20020127115500.D9BF93F40B@quanstro.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Date: Sun, 27 Jan 2002 14:43:47 +0000 Topicbox-Message-UUID: 4674acc0-eaca-11e9-9e20-41e7f4b1d025 On Sun, 27 Jan 2002 06:55:00 -0500 (EST) "erik quanstrom" wrote: > are you one of those guys who is person b in this conversation: > > a) can i borrow x? > b) i belive you can yes. > a) okay, damit, /may/ i borrow x? yes I am, it drives people crazy. but luckily it's not quite at that level I think it comes from too much programming! are you the sort of programmer that does : f = fopen("filename", "w"); f.write(areallybigstring); f.close() or stringlen = len(areallybigstring) if (not enoughdiskspace(stringlen)) : print "not enough space on device to write file" sys.exit() try : f = fopen("filename", "w"); except : print "couldn't open file for writing" sys.exit() try : w = f.write(areallybigstring); except : print "write failed" sys.exit() try : f.close() except : print "close failed" if (w != stringlen) : print "agghh not enough bytes written"