Ruby File I/O argument string gsub() include? chop Dir File class random shuffle in array1 File I/O & Term replacement in Ruby - 파일 내용 치환 및 저장에 관한 예제 Reference Item Argument 사용 String class method : gsub() , include? , chop Dir 및 File 클래스 사용법 Random shuffle in Array Senario 지정된 경로의 파일을 모두 읽어와서, 지정된 글자가 발견되면 그에 대응하는 다른 문자로 치환하여 지정된 갯수만큼 파일에 저장함. Source #!/usr/bin/ruby ###################################################################### # Global variables and functions ###################################################################### $re.. 2009. 5. 25. 이전 1 다음