Globally replace text in several files: Difference between revisions
Globally replace text in several files (view source)
Revision as of 10:18, 5 April 2019
, 5 years ago→{{header|Julia}}: Changed replace() method. The exmaple is now working in Julia 1.1
Sylvaticus (talk | contribs) (→{{header|Julia}}: readall deprecated in favour to read(f,String)) |
Sylvaticus (talk | contribs) (→{{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!"
end
end</lang>
|