No, because if I change the line where I open the file: hfile = OPEN "/usr/far/alman/NOMEFARM.DAT" FOR read wtite
I obtain the same message. Fabien Bodard ha scritto: > # If the READ or WRITE keyword are specified, then the input-output > are not buffered. > > # If the INPUT or OUTPUT keyword are specified, then the input-output > are buffered. > > > Maybe for that ? > > > 2008/9/17 Almanova Sistemi <[EMAIL PROTECTED]>: > >> Hi, >> >> is the first time that I write to list, but i have a problem. >> >> I am writing an application in gambas (2.7.0-2.1) on opensuse 10.3 - >> 11.0 and I need to lock a file when I open it. >> >> My code: >> >> ... >> hfile = OPEN "/usr/far/alman/NOMEFARM.DAT" FOR INPUT OUTPUT >> TRY LOCK hfile >> IF ERROR then >> ... >> ENDIF >> LINE INPUT #hfile, MyVar >> UNLOCK hfile >> CLOSE #hfile >> ... >> >> When I execute it I get the following messge: >> Useless LOCK in line ... >> >> Why ? >> >> Regards, >> Massimo. >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >> Build the coolest Linux based applications with Moblin SDK & win great prizes >> Grand prize is a trip for two to an Open Source event anywhere in the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user