home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.pascal.borland      Borland Pascal was actually pretty neat      2,978 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 2,481 of 2,978   
   winston19842005 to rdavey@bluemountain.ca   
   Re: Moving/relocating a file   
   06 Jul 07 11:11:21   
   
   From: bjjlyates@bellsouth.net   
      
   On 7/6/07 10:39 AM, in article f6lk6i$9bu$1@aioe.org, "Rick Davey"   
    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   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca