ScannerExtensions

Scanner extensions are inspired from Java scanner. You can read next string, number or array from a TextReader

When writing literate programs as Markdown documents, you can also include snippets in other languages. These will not be colorized and processed as F# code samples:

[lang=csharp]
Console.WriteLine("Hello world!");

Static members

Static memberDescription
IsWhiteSpace(charcode)
Signature: charcode:int -> bool
IsWhiteSpace(charcode)
Signature: charcode:char -> bool
NextNumber(reader)
Signature: reader:TextReader -> int
NextNumber(reader)
Signature: reader:TextReader -> 'T
Type parameters: 'T
NextNumberArray(reader, size)
Signature: (reader:TextReader * size:int) -> 'T []
Type parameters: 'T
NextString(reader)
Signature: reader:TextReader -> string

Get next string

## Example

string input = "    the string  032423";
var reader = new StringReader(input);
var s1 = reader.NextString();
NextStringArray(reader, size)
Signature: (reader:TextReader * size:int) -> string []
Type parameters: 'T