[Insight-developers] BCC compiler issue

Hans Johnson hans-johnson@uiowa.edu
Tue, 11 Feb 2003 18:00:32 -0600


Hello,

Could somebody with the Borland compiler please tell us the cross 
platform function call used to delete a file?

I believe that the following program should do it:

#include <cstdio>

int main ( int argc, char ** argv)
{
   std::remove("testfile");
}

Will you please test that the above code works?

I beleive that this should work cross platform, because the remove 
function is part of the ANSI C standard.

Thanks,
===================================================================
Hans J. Johnson                              W294 GH
hans-johnson@uiowa.edu                       Dept. of Psychiatry
http://www.psychiatry.uiowa.edu/~hjohnson    The University of Iowa
(319) 353-8587                               Iowa City, IA 52242
===================================================================