changeset 2155:064c7401eb5c

プログラム改良しました
author KAMADA Kei <c110206@f.koeki-u.ac.jp>
date Thu, 21 Nov 2013 17:06:48 +0900
parents f0290e772b25
children dd1e66d0d625
files ruby/pro2.rb
diffstat 1 files changed, 4 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/ruby/pro2.rb	Thu Nov 21 16:33:48 2013 +0900
+++ b/ruby/pro2.rb	Thu Nov 21 17:06:48 2013 +0900
@@ -61,13 +61,11 @@
   STDERR.print "篆絖糸羆冴:"
   after = STDIN.gets.chomp
   `convert -geometry 150x100 #{before} #{after}`
-  STDERR.print "糸picture/ 篆絖障\n"
-  FileUtils.mv(after, '/home/Kei/public_html/demo/')
+  STDERR.print "糸syuzai/ 篆絖障\n"
+  FileUtils.mv(after, '../syuzai/')
 
-  STDERR.print "篆絖絎:"  
-  save = STDIN.gets.chomp
-  FileUtils.mv(name, save)
-  STDERR.print "篆絖障\n"
+  FileUtils.mv(name, '../syuzai/')
+  STDERR.print "<ゃsyuzai/ 篆絖障\n"  
   
   open("temp.txt", "r") do |cm|
     while x = cm.gets

yatex.org