Delete File

From SwiftAPI

Jump to: navigation, search

Contents

C

#include <stdio.h>
 
remove("file.txt");

C#

using System.IO;
 
File.Delete("file.txt");

Java

import java.io.File;
 
File file = new File("file.txt");
file.delete();

Perl

perldoc

unlink('file.txt');

PHP

php.net

unlink('file.txt');

Python

docs.python.org

import os
os.remove('file.txt')

Ruby

ruby-doc.org

File.delete("file.txt")

Visual Basic .NET

Imports System.IO
 
File.Delete("file.txt")
Personal tools