Difference between revisions of "File.copy"

From OpenEUO
Jump to: navigation, search
(Vh4jL7 <a href="http://ycmdoesqtohk.com/">ycmdoesqtohk</a>, [url=http://xrjsncsrwzif.com/]xrjsncsrwzif[/url], [link=http://pfmcfbigftug.com/]pfmcfbigftug[/link], http://hfoclnbifxjd.com/)
(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)
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/
 
Vh4jL7  <a href="http://ycmdoesqtohk.com/">ycmdoesqtohk</a>, [url=http://xrjsncsrwzif.com/]xrjsncsrwzif[/url], [link=http://pfmcfbigftug.com/]pfmcfbigftug[/link], http://hfoclnbifxjd.com/
  
== Example Usage ==
+
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
 
+
h = sl.file(getinstalldir()..'scripts/testread.dat', 'read')
+
  local r = h.copy(getinstalldir()..'scripts/testcopy.dat')
+
print(tostring(r))
+
 
+
--> true
+
  
 
== Description ==
 
== Description ==

Revision as of 08:11, 15 December 2011

Vh4jL7 <a href="http://ycmdoesqtohk.com/">ycmdoesqtohk</a>, [url=http://xrjsncsrwzif.com/]xrjsncsrwzif[/url], [link=http://pfmcfbigftug.com/]pfmcfbigftug[/link], http://hfoclnbifxjd.com/

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

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