Globally replace text in several files: Difference between revisions

→‎{{header|Julia}}: Changed replace() method. The exmaple is now working in Julia 1.1
(→‎{{header|Julia}}: readall deprecated in favour to read(f,String))
(→‎{{header|Julia}}: Changed replace() method. The exmaple is now working in Julia 1.1)
Line 749:
txt = read(filename, String)
open(filename, "w") do f
write(f, replace(txt, "Goodbye London!", => "Hello New York!"))
end
end</lang>
3

edits