我收到错误没有这样的文件或目录在我的命令行,我认为这是因为我不保存ruby文件某处具体。所有我做的是创建一个随机文件夹,我会保存我的ruby文件。
I am receiving the error No such file or directory in my command line and I think it's because I am not saving the ruby files somewhere specific. All I did was create a random folder where I would save my ruby files.
我需要保存我的脚本在原始的ruby文件夹吗?谢谢!
Do I need to save my scripts in the original ruby folder? Thanks!
**这是Windows 7。
** This is Windows 7.
推荐答案Windows,根据您的编辑器的设置,您可能有.txt的扩展名附加到您的文件,所以当你去运行 Matz.rb 它不'真的存在,它真的`Matz.rb.txt 。
On Windows, depending on how your editor is set up, you may have the extension of .txt appended to your file, and so when you go to run Matz.rb it doesn't really exist, it is really `Matz.rb.txt.
这可能或可能不会发生你,但是一种检查方法是打开你的命令提示符,并在文件夹中做一个 dir ,看看你有什么文件。
This may or may not be happening with you, but a way to check is to open your command prompt, and do a dir in the folder to see what files you have there.
更多推荐
我在哪里保存我的ruby(.rb)文件?
发布评论