Mega Code Archive

 
Categories / Ruby / File Directory
 

Deleting and Renaming Files

File.new( "books.txt", "w" ) File.rename( "books.txt", "chaps.txt" ) File.delete( "chaps.txt" )