Writing to file problem (Kernelbase exeption)

Konrad via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jun 5 08:24:38 PDT 2014


Hi guys!
I have problem with writing to a file.
My function looks like this:
[code]
int game_change_config(string _player_spritesheet, string 
_flame_spritesheet) {
    string info = _player_spritesheet~"\n"~_flame_spritesheet;
    auto config_file = File("Data/config.ini");
    config_file.write(info);	
    return 0;
}[/code]

Everythings compile just fine, but sadly I'm getting 
Kernelbase.dll exception while function is running.
Could you help me that problem? :)

Best regards,
Ironus

PS. I'm sorry for my poor english.


More information about the Digitalmars-d-learn mailing list