1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
<HTML>
<HEAD>
<TITLE>TSP (libtsp/FL) - FLbackup</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFACD">
<H2>FLbackup</H2>
<HR>
<H4>Routine</H4>
<DL>
<DT>
void FLbackup (const char Fname[])
</DL>
<H4>Purpose</H4>
<DL>
<DT>
Rename an existing file
</DL>
<H4>Description</H4>
This subroutine backs up a file. If a file with the given name exists, say
xxx, that file is renamed to xxx~. Any previous file with the name xxx~ is
removed. For MS-DOS, the ~ character is the last character in the file
extension. In MS-DOS xxx is renamed to xxx.~.
<P>
Only regular files are backed up. If a backup file is created, a warning
message indicating the new name is issued. One use of this routine is to
a copy of an existing file before opening a new file.
<P>
This routine will terminate execution if the file cannot be backed up.
<H4>Parameters</H4>
<DL>
<DT>
-> const char Fname[]
<DD>
File name
</DL>
<H4>Author / revision</H4>
P. Kabal Copyright (C) 1997
/ Revision 1.27 1997/10/14
<P>
<HR>
Main Index <A HREF="../libtsp.html">libtsp</A>
</BODY>
</HTML>
|