Difference between revisions of "File.copy"

From OpenEUO
Jump to: navigation, search
(porndir.del http://brandonfioa65.angelfire.com/reply-www.bulbapedia.org.html reply www.bulbapedia.org pornstarpile.come http://brandonfioa65.angelfire.com/part-www.motozoneautoacc.com.au.html part ww)
(killspamm)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
Vh4jL7 <a href="http://ycmdoesqtohk.com/">ycmdoesqtohk</a>, [url=http://xrjsncsrwzif.com/]xrjsncsrwzif[/url], [link=http://pfmcfbigftug.com/]pfmcfbigftug[/link], http://hfoclnbifxjd.com/
+
== Calling Pattern ==
 +
Call
 +
  local f = sl.file(a,b)
 +
local r = f.copy(c)
  
www.go.randmcnally.com cdbay http://annabuch71.tripod.com/post-www.lolitaspro.com.html dfar 252.227 7014 dr. mirco bolzoni http://annabuch71.tripod.com/i.i.c.r.c.html i.i.c.r.c
+
Arguments
 +
  c is a string, the target file name.
  
www.usamobility.com http://carolmcar34.angelfire.com/unwise.exe-silent-switch.html  www.usamobility.com http://carolmcar34.angelfire.com/windstream-rebates.net.html windstream rebates.net
+
Results
 +
r is a boolean denoting success or failure of copy operation.
  
porndir.del http://brandonfioa65.angelfire.com/reply-www.bulbapedia.org.html reply www.bulbapedia.org pornstarpile.come http://brandonfioa65.angelfire.com/part-www.motozoneautoacc.com.au.html part www.motozoneautoacc.com.au
+
== Example Usage ==
 +
 
 +
h = sl.file(getinstalldir()..'scripts/testread.dat', 'read')
 +
local r = h.copy(getinstalldir()..'scripts/testcopy.dat')
 +
print(tostring(r))
 +
 
 +
  --> true
 +
 
 +
== Description ==
 +
 
 +
The copy method copies the open file to the target filename. Returns true if successful. The current read cursor position is maintained.
 +
 
 +
== Upon Error ==
 +
 
 +
If copy is unable to create the target file an error occurs and is handled according to the operant redirection settings. Any other error should cause copy to return false.
  
 
== See Also ==
 
== See Also ==

Latest revision as of 19:31, 15 July 2012

Calling Pattern

Call

local f = sl.file(a,b)
local r = f.copy(c)

Arguments

c is a string, the target file name.

Results

r is a boolean denoting success or failure of copy operation.

Example Usage

h = sl.file(getinstalldir()..'scripts/testread.dat', 'read')
local r = h.copy(getinstalldir()..'scripts/testcopy.dat')
print(tostring(r))
--> true

Description

The copy method copies the open file to the target filename. Returns true if successful. The current read cursor position is maintained.

Upon Error

If copy is unable to create the target file an error occurs and is handled according to the operant redirection settings. Any other error should cause copy to return false.

See Also