load data from txt file

codephantom me at noyb.com
Thu Jan 4 05:52:35 UTC 2018


On Wednesday, 3 January 2018 at 05:45:32 UTC, Tony wrote:
>
> Someone else should know what the correct replacement
> is for removechars().
>

the replacement is known as 'programming' ;-)

//string trimmed = removechars!string(line,"[\\[\\]\"\n\r]");
string trimmed;
foreach(c; line)
{
     if(c != '[' && c != ']' && c != '\"' && c != '\r' && c != 
'\n' )
       trimmed ~= c;
}



More information about the Digitalmars-d mailing list