Dart API Referencedart:io

dart:io library

The IO library is used for Dart server applications, which run on a stand-alone Dart VM from the command line. This library does not work in browser based applications.

This library allows you to work with files, directories, sockets, processes, HTTP servers and clients, and more.

Properties

const OutputStream stderr #

const OutputStream stderr = null;

const InputStream stdin #

const InputStream stdin = null;

const OutputStream stdout #

const OutputStream stdout = null;

Functions

void exit(int status) #

Exit the Dart VM process with the given status code.

void exit(int status) {
  if (status is !int) {
    throw new ArgumentError("int status expected");
  }
  _exit(status);
}

Classes

Exceptions