Home c Record to file via System () in SI

Record to file via System () in SI

Author

Date

Category

I need to write a certain text in the SI text in the text file, I want to do this through the System command (“Copy Con File.txt). But as in CMD, it requests the user input. Is it possible to do it automatically that when entering the command or command block of commands the program itself created the file and recorded the text in it?


Answer 1, Authority 100%

Solution:

System ("Echo Text & GT; & gt; file.txt");

This command creates a text document named file, and writes the word text to it.

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions