Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
September 21, 2003 File : Stream | ||||
---|---|---|---|---|
| ||||
When I run the following code: import c.stdio; import stream; int main(char [] [] args) { File o = new File("non_existant",FileMode.Out); return 1; } I get : Error: file 'non_existant' not found It looks in the source like it should create it, this is windows 2000 dmd .73. C |
September 21, 2003 Re: File : Stream | ||||
---|---|---|---|---|
| ||||
Posted in reply to Charles Sanders | Charles Sanders wrote:
> When I run the following code:
>
> import c.stdio;
> import stream;
>
>
> int main(char [] [] args) {
> File o = new File("non_existant",FileMode.Out);
> return 1;
> }
>
> I get :
>
> Error: file 'non_existant' not found
>
> It looks in the source like it should create it, this is windows 2000 dmd
> .73.
>
> C
It seems like your code should work, but since it doesn't you might try this code which has worked for me in the past:
File o = new File();
o.create("non_existant");
Justin
|
September 21, 2003 Re: File : Stream | ||||
---|---|---|---|---|
| ||||
Posted in reply to J C Calvarese | Ok this works , but this also touches on another subject. Walter what do you want us to do when we find bugs in Phobos ? Would you prefer us to post a patch to the newsgroup, or is there some other way you want this handled ? C "J C Calvarese" <jcc7@cox.net> wrote in message news:bkj2tb$gf7$1@digitaldaemon.com... > Charles Sanders wrote: > > > When I run the following code: > > > > import c.stdio; > > import stream; > > > > > > int main(char [] [] args) { > > File o = new File("non_existant",FileMode.Out); > > return 1; > > } > > > > I get : > > > > Error: file 'non_existant' not found > > > > It looks in the source like it should create it, this is windows 2000 dmd > > .73. > > > > C > > It seems like your code should work, but since it doesn't you might try this code which has worked for me in the past: > > File o = new File(); > o.create("non_existant"); > > Justin > |
September 22, 2003 Re: File : Stream | ||||
---|---|---|---|---|
| ||||
Posted in reply to Charles Sanders | "Charles Sanders" <sanders-consulting@comcast.net> wrote in message news:bkkuee$132j$1@digitaldaemon.com... > Ok this works , but this also touches on another subject. > > Walter what do you want us to do when we find bugs in Phobos ? Would you prefer us to post a patch to the newsgroup, or is there some other way you want this handled ? Post them here with a "BUG" in the subject. It would be even better to look at the phobos code and submit a fix! |
September 22, 2003 Re: File : Stream | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | Ok Ill try to get a patch for it, however when I go to compile phobos, using the command digc *.d -lib=phobos I get : module math is in multiple packages math Same with dmd *.d I dont know if all these questions Im asking or stupid or not so Im just going to keep asking them untill someone says something ;). C "Walter" <walter@digitalmars.com> wrote in message news:bknajj$10ug$1@digitaldaemon.com... > > "Charles Sanders" <sanders-consulting@comcast.net> wrote in message news:bkkuee$132j$1@digitaldaemon.com... > > Ok this works , but this also touches on another subject. > > > > Walter what do you want us to do when we find bugs in Phobos ? Would you > > prefer us to post a patch to the newsgroup, or is there some other way you > > want this handled ? > > Post them here with a "BUG" in the subject. It would be even better to look > at the phobos code and submit a fix! > > |
Copyright © 1999-2021 by the D Language Foundation