changeset 2156:dd1e66d0d625

ruby ľ¤·¤¿
author KAMADA Kei <c110206@f.koeki-u.ac.jp>
date Fri, 22 Nov 2013 16:08:47 +0900
parents 064c7401eb5c
children 54686842d16d
files ruby/pro2.rb
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ruby/pro2.rb	Thu Nov 21 17:06:48 2013 +0900
+++ b/ruby/pro2.rb	Fri Nov 22 16:08:47 2013 +0900
@@ -64,8 +64,10 @@
   STDERR.print "ç”»åƒã¯syuzai/ ã«ä¿å­˜ã—ã¾ã™ã€‚\n"
   FileUtils.mv(after, '../syuzai/')
 
-  FileUtils.mv(name, '../syuzai/')
-  STDERR.print "ファイルã¯syuzai/ ã«ä¿å­˜ã•ã‚Œã¾ã—ãŸ\n"  
+  #STDERR.print "ä¿å­˜å…ˆã‚’指定ã—ã¦ãã ã•ã„\n"
+  #save = STDIN.gets.chomp
+  FileUtils.mv(name, '../syuzai')
+  STDERR.print "ファイルã¯../syuzai ã«ä¿å­˜ã•ã‚Œã¾ã—ãŸ\n"  
   
   open("temp.txt", "r") do |cm|
     while x = cm.gets

yatex.org