How to edit Runtime.txt file in CMD?

Hello

In the Video, Mentor told us that the runtime.txt file will be saved having a python exact version for the project. In their terminal, they used “VI” command for creating the file in the folder

What command is there for cmd?
I have seen the internet and there I used nul > runtime.txt.

Also Editing the file directly through cmd is also one thing I cannot understand
I used echo python3.10.2 > runtime.txt command.

Please tell have I used it correctly or do I need to do something else.

Thank You.

Hi @sarthakagg105
Runtime.txt is just a simple file which contains the version of python which we used to develope our project. It is useful because it is possible that someone might be using python 2.0 whereas someone else might be using python 3 for running/developing the same project .

Vi is nothing special but just another text editor , you can use notepad or any other text editor instead of it .

If you are using windows then you can create that file manually.
Actually what ‘VI’ command is doing is creating the file with name runtime.txt in the current project and then writing the python version in that.
So what you can do now is to create the file name runtime.txt in your project folder and then write the python version into that.

Hope this might help :slight_smile:

Indeed It helped. Thank You

Hi @sarthakagg105
Great to hear that :blush:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.