Files
ruby-examples-1/level6/58.rb
2026-01-15 14:01:21 +09:00

11 lines
129 B
Ruby
Executable File

#!/usr/bin/ruby
# -*- coding: utf-8 -*-
=begin
파일명에서 확장자 추출
=end
str = "hello.txt"
puts File.extname(str)