Skip to main content

Problem:

How can you Delete a file in .Net using a .Net class ?

Resolution:

You can use the  System.IO.File class to do this using code such as:-

    class cFile as "System.IO.File"

....

    invoke cFile::"Delete"("c:\\myfile.dat")

Old KB# 3935