⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Ruby master
All Projects
Ruby
»
Ruby master
Overview
Activity
Roadmap
Issues
Repository
Like
Download (221 Bytes)
Bug #7267
» writer.rb
kennygrant (Kenny Grant)
, 11/03/2012 07:50 AM
#!/usr/bin/env ruby
name
=
"test?.txt"
File
.
open
(
"./
#{
name
}
"
,
"w"
)
do
|
f
|
f
.
write
"Testing"
end
Dir
.
glob
(
"./*.txt"
)
do
|
f
|
puts
f
.
chars
.
to_a
.
inspect
end
Dir
.
glob
(
"./
#{
name
}
"
)
do
|
f
|
puts
f
.
chars
.
to_a
.
inspect
end
« Previous
1
2
3
4
Next »
(4-4/4)
Loading...