Skip to content

Latest commit

 

History

History
22 lines (19 loc) · 1.01 KB

introduction.md

File metadata and controls

22 lines (19 loc) · 1.01 KB

The following examples are all stand-alone apps, such as servers, that run from the command line. Most of the examples use the dart:io library, which is used solely for command-line applications running on a stand-alone Dart VM. The dart:io library does not work in browser-based applications. Many examples also use Pub packages.

**Note:** Many server-side APIs provide both asynchronous and synchronous ways to accomplish a task. For example, to read a file as a string you can use either the asynchronous `readAsString()` method from the File class, or its synchronous counterpart, `readAsStringSync()`. The examples below use only the asynchronous versions.

See the source on Github.

After looking at the following code examples, refer to Write Command-line Apps for additional information about I/O and command-line apps.