Make a backup file: Difference between revisions

Content deleted Content added
Jono (talk | contribs)
→‎{{header|Lasso}}: Adding Lasso make a backup file solution
Jono (talk | contribs)
m →‎{{header|Lasso}}: comment out initial first time run file creation, and explain
Line 201: Line 201:


// create file
// create file
// only need to do this if this code example has not been run before and input.txt foes not exist, else leave commented out
local(nf = file(#file2use))
//local(nf = file(#file2use))
#nf->doWithClose => { #nf->writeBytes('Hello, World!'->asBytes) }
//#nf->doWithClose => { #nf->writeBytes('Hello, World!'->asBytes) }