rubyでファイルの存在チェック
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
[[Ruby]]
*ソース [#k75b63f7]
if File.exist?("./test.txt") then
puts "FILE exist"
else
puts "FILE not exist"
end
終了行:
[[Ruby]]
*ソース [#k75b63f7]
if File.exist?("./test.txt") then
puts "FILE exist"
else
puts "FILE not exist"
end
ページ名: