Make a backup file: Difference between revisions
Content deleted Content added
Thundergnat (talk | contribs) →{{header|Perl 6}}: Add a Perl 6 example |
Thundergnat (talk | contribs) m →{{header|Perl 6}}: Alphabets. how do they work? |
||
Line 327: | Line 327: | ||
AMSDOS has automatic one-level backups which also work from Locomotive BASIC: If e.g. the file <tt>test.bas</tt> is saved, the data gets written to <tt>test.$$$</tt>. When the file is closed a preexisting <tt>test.bas</tt> gets renamed to <tt>test.bak</tt> and finally <tt>test.$$$</tt> is renamed to <tt>test.bas</tt>. (These backups affect all file types, not just BASIC source code.) |
AMSDOS has automatic one-level backups which also work from Locomotive BASIC: If e.g. the file <tt>test.bas</tt> is saved, the data gets written to <tt>test.$$$</tt>. When the file is closed a preexisting <tt>test.bas</tt> gets renamed to <tt>test.bak</tt> and finally <tt>test.$$$</tt> is renamed to <tt>test.bas</tt>. (These backups affect all file types, not just BASIC source code.) |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
=={{header|Perl 6}}== |
=={{header|Perl 6}}== |
||
Line 373: | Line 366: | ||
# Optional parameters can be in any order, in any combination. |
# Optional parameters can be in any order, in any combination. |
||
backup 'myfile', :follow-symlinks, :limit(2), :ext('bak');</lang> |
backup 'myfile', :follow-symlinks, :limit(2), :ext('bak');</lang> |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
=={{header|Pike}}== |
=={{header|Pike}}== |