file = File.new( "books.txt", "w" ) file.chmod( 0755 ) system "ls -l books.txt" File.delete( "books.txt" )