我在哪里保存我的ruby(.rb)文件?

编程入门 行业动态 更新时间:2024-10-10 00:25:45
本文介绍了我在哪里保存我的ruby(.rb)文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我收到错误没有这样的文件或目录在我的命令行,我认为这是因为我不保存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)文件?

本文发布于:2023-11-26 07:49:41,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1633253.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:我在   文件   ruby   rb

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!