Create a zero-length file with a system command : system « Development « Ruby






Create a zero-length file with a system command



system("touch chap.txt") # 

 








Related examples in the same category

1.Getting Results from Other Programs
2.run an operating system command with system:
3.submit each part of a command separately, as an argument to system:
4.Run notepad.exe with system function