On Mon, Dec 29, 2008 at 10:36 PM, Michael P. <[email protected]> wrote: > import std.stdio; > import std.cstream; > void main() > { > char[][] names; > char[] currentName; > while( true ) > { > din.readf( "%s", ¤tName ); > if( currentName == "stop" ) > { > break; > } > else > { names ~= currentName; > } > } > foreach( name; names ) > { > writefln( name ); > } > }
~= performs an append. It adds the given item to the end of the array.
