Sha256: 5a7dfed512842ff3b8c864502c0281164a5151ba6c7a82a9c2b31e95c236ea56

Contents?: true

Size: 326 Bytes

Versions: 39

Compression:

Stored size: 326 Bytes

Contents

1つの文字列を受け取り、文字列と一致するファイル名のテキストデータを表示するプログラムを作成せよ。


- File.read

text = File.read(ファイル名)

File.readメソッドは、受け取ったファイル名と同じ名前のファイルのデータを読み込むメソッド。

Version data entries

39 entries across 24 versions & 1 rubygems

Version Path
ruby_learner-1.2.9 contents/takahashi/sample_prog/question/9_1.org
ruby_learner-1.2.8 contents/takahashi/sample_prog/question/9_1.org
ruby_learner-1.2.7 contents/takahashi/sample_prog/question/9_1.org
ruby_learner-1.2.6 contents/takahashi/sample_prog/question/9_1.org
ruby_learner-1.2.5 contents/takahashi/sample_prog/question/9_1.org
ruby_learner-1.2.4 contents/takahashi/sample_prog/question/9_1.org
ruby_learner-1.2.3 contents/takahashi/sample_prog/question/9_1.org
ruby_learner-1.2.2 contents/takahashi/sample_prog/question/9_1.org
ruby_learner-1.2.1 contents/takahashi/sample_prog/question/9_1.org
ruby_learner-1.2.0 contents/takahashi/sample_prog/question/9_1.org
ruby_learner-1.2.0 contents/questions/sequential_check/section_9/part_1/lib/sentence.org
ruby_learner-1.1.15 takahashi/sample_prog/question/9_1.org
ruby_learner-1.1.15 questions/sequential_check/section_9/part_1/lib/sentence.org
ruby_learner-1.1.14 takahashi/sample_prog/question/9_1.org
ruby_learner-1.1.14 questions/sequential_check/section_9/part_1/lib/sentence.org
ruby_learner-1.1.13 questions/sequential_check/section_9/part_1/lib/sentence.org
ruby_learner-1.1.13 takahashi/sample_prog/question/9_1.org
ruby_learner-1.1.11 takahashi/sample_prog/question/9_1.org
ruby_learner-1.1.11 questions/sequential_check/section_9/part_1/lib/sentence.org
ruby_learner-1.1.10 questions/sequential_check/section_9/part_1/lib/sentence.org