Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Pascal Borland > Re: Moving/relo...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 5 Topic 1041 of 1118
Post > Topic >>

Re: Moving/relocating a file

by winston19842005 <bjjlyates@[EMAIL PROTECTED] > Jul 6, 2007 at 11:11 AM

On 7/6/07 10:39 AM, in article f6lk6i$9bu$1@[EMAIL PROTECTED]
 "Rick Davey"
<rdavey@[EMAIL PROTECTED]
> wrote:

> What's the Pascal code to move a file?  I need to move it to another
drive
> (possibly a UNC path).

This isn't really a programming language question, more of an
environment/OS
question. Languages usually don't contain OS-type functions, only a way to
call the OS-related function.

Except in the very VERY early days in the days of computers without REAL
OS
interfaces, in which case the code is:

Open input file
Open output file
Repeat until EOF(input)
 Read record from input file
 Write record to output file
Close output file
Close input file
If moving file, delete input file
 




 5 Posts in Topic:
Moving/relocating a file
"Rick Davey" &l  2007-07-06 10:39:19 
Re: Moving/relocating a file
winston19842005 <bjjly  2007-07-06 11:11:21 
Re: Moving/relocating a file
"Rick Davey" &l  2007-07-06 11:47:31 
Re: Moving/relocating a file
"Rick Davey" &l  2007-07-06 12:41:32 
Re: Moving/relocating a file
Bart <broersma.juda_AN  2007-07-07 16:45:33 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 18:34:56 CDT 2008.