Code to use in ruby
filename = "/path-to/file/file.ext"
text=''
File.open(filename,"r"){ |f| f.gets; text=f.read}
File.open(filename,"w+"){ |f| f.write(text)}
Make sure that variable "filename" should be in lowercaseIf you want a variable in uppercase then you have to declare it outside the def/method.
3 Simple Steps to Run Go Application in Ubuntu
-
Hello All, Writing a blog post after a long time. Was occupied with some
new venture and role. Recently in one of the applications we decided to use
GO Lan...
3 years ago