From 56e60da9db31c4b6ec8d6433be9710470daaf34a Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 5 Jan 2000 04:41:21 +0000 Subject: 20000105 git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- sample/mpart.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sample') diff --git a/sample/mpart.rb b/sample/mpart.rb index 6c40d50e1..a88eba0ef 100644 --- a/sample/mpart.rb +++ b/sample/mpart.rb @@ -31,7 +31,7 @@ for i in ifp = open(basename) end ofp.write(i) line = line + 1 - if line >= lines + if line >= lines and !ifp.eof? ofp.write("END--cut here--cut here\n") ofp.close part = part + 1 -- cgit