options_file 0.9.12 copy "options_file: ^0.9.12" to clipboard
options_file: ^0.9.12 copied to clipboard

outdatedDart 1 only

Read options files

options_file #

Dart library for reading options files

OptionsFile reads options from a file. The options must be stored in name=value pairs, one pair per line. E.g.:

# stuff
name=James
age=9
height=256

Spaces around the key and value are trimmed. Any line which starts with a hash (#) is ignored. Any line which does not contain an equals sign is ignored.

Usage #

OptionsFile options = new OptionsFile('example/local.options', 'example/default.options');

String user = options.getString('user', 'bob');
int port = options.getInt('port', 1234);

For further information on using optionsfile, see the dartdoc in options.dart, and the example files.

1
likes
0
pub points
5%
popularity

Publisher

unverified uploader

Read options files

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

unittest

More

Packages that depend on options_file