error with reading file name

bearophile bearophileHUGS at lycos.com
Thu Dec 6 10:04:11 PST 2012


Suliman:

> I am trying to create simple app that would read user input and 
> open file with such name, but every time when I run it's crash 
> with error
>
> "std.file.FileException at std\file.d(294): \1.txt"

Try to declutter your code as much as possible, then print the 
file name before trying to call File, and take a look at what's 
inside that string. This is not a solution, but it's a start.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list