Hi , i am writing a program concerning college administration .I have to creat a delete botton but i dont know how to start my coding .I know there is two type of delete methods such as kill and mycomputerfilesystem.deletefile(m-fielpath).Can anyone help meout how to write the complet delete code plzz thxx If you need all the step i can write it down too

Recommended Answers

All 2 Replies

Hi
Kill Syntax Kill ( PathName ) Another one System.IO.File.Delete(PathName) Example

Kill("C:\C.Txt")
       Or
  System.IO.File.Delete("c:\c.txt")

This example deletes the file "C:\c.txt"
I hope this is useful for u

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.