<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shigemk2</author_name>
  <author_url>https://blog.hatena.ne.jp/shigemk2/</author_url>
  <blog_title>by shigemk2</blog_title>
  <blog_url>https://www.shigemk2.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>ファイルのappend file = File.open('path/to/test.txt','a') 3.times { |n| file.puts &quot;text #{n}&quot; } file.close qiita.com ファイルの読み込み File.open('C:\tmp\test.txt', 'r:utf-8') do |f| f.each_line do |line| if line.include?(&quot;人&quot;) puts line end end end 逆引きRuby - ディレクトリ ディレクトリの中身の確認 p Dir::entries(&quot;/home/take&quot;) code-e…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.shigemk2.com%2Fentry%2Fruby_manipulate_file_and_directory&quot; title=&quot;Rubyでファイルの操作とかディレクトリの中身の確認とか - by shigemk2&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-08-05 21:30:02</published>
  <title>Rubyでファイルの操作とかディレクトリの中身の確認とか</title>
  <type>rich</type>
  <url>https://www.shigemk2.com/entry/ruby_manipulate_file_and_directory</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
