On Mon, 15 Jul 2013, PICCORO McKAY Lenz wrote: > after long time of various triyngs get some example and got this error now: > > .... > data = wtable["hex_huelladactilar"] > If Exist(User.Home &/ ".fprint/0002/00000000/1") Then > Kill User.Home &/ ".fprint/0002/00000000/1" > Endif > myFinger = Open User.Home &/ ".fprint/0002/00000000/1" For Write > data.Write(myFinger) > Close myFinger > > but in open line said "file not exits" .. i wish to create the file from > stream.. not open for write >
So you want to write to it and to create it if it doesn't exist (and it will never exist because of the three lines above): myFinger = Open User.Home &/ ".fprint/0002/00000000/1" For Write Create Note the "Create" keyword at the end of the line. "For Write Create" will also truncate the file to a size of 0 if it exists while opening so the If clause before the Open statement is effectively useless. > so then where are the examples for that? again lacks on documentation and > no suggestions.. You can find my explanation above in the documentation[0], too. It seems that you are right with the first point, though. I couldn't find any example of how to use files. I'll put that on my schedule... > i wish to help and made good apps for business into free > soft, but seems its to hard.. free soft only work in nerd-like and freakers > computers ? please let probe theres not such Wait... You know that this is the gambas-user mailing list, no? By far most attendees here can program in Gambas very well. Do you realise that you asked for help and at the same time called us freaks? (Well you conditioned that "freaks" by whether we can help you or not - which is IMHO even worse.) Regards, Tobi [0] http://gambasdoc.org/help/lang/open?v3 ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gambas-user
