2013-12-06 Fileが開けなかった ruby File.open("~/path/to/file") でファイルが開けなくて苦労しました。 チルダはダメのようです。 File.open("/home/user/path/to/file") であればOK。