[Gambas-user] file copy
Benoit Minisini
gambas at ...2...
Tue Aug 12 15:05:08 CEST 2003
Le Mardi 12 Août 2003 14:45, Ahmad Kamal a écrit :
> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> <html>
> <head>
> <meta http-equiv="Content-Type"
> content="text/html;charset=windows-1256">
> <title></title>
> </head>
> <body text="#000000" bgcolor="#ffffff">
> how will GB know which files are temp or not?!<br>
> <br>
> Benoit Minisini wrote:<br>
> <blockquote type="cite" cite="mid200308121443.03196.gambas at ...2...">
> <pre wrap="">Le Mardi 12 Août 2003 14:15, Ahmad Kamal a écrit :
> </pre>
> <blockquote type="cite">
> <pre wrap="">hi
>
> how can I copy a file to /tmp from within gambas?
>
>
> </pre>
> </blockquote>
> <pre wrap=""><!---->
> Hi, Ahmad
>
> COPY src TO dst
>
> If you need a temporary file, use the Temp$() function.
>
> sTemp = Temp$()
> COPY src to sTemp
> ...
> KILL sTemp
>
> Temporary files are automatically removed at the end of the program.
>
> Regards,
>
> </pre>
> </blockquote>
> </body>
> </html>
>
Removed temporary files are /tmp/gambas.<uid>/*.tmp. Temp$() returns a file
name matching this pattern.
--
Benoit Minisini
mailto:gambas at ...1...
More information about the User
mailing list