Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 08/22/26 08:44
Max Number of Strategies in /Strategy folder
by Martin_HH. 08/17/26 07:54
Pause button for evaluation shell?
by AndrewAMD. 08/13/26 17:16
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 08/10/26 12:46
phantom() not defined in indicators.c
by jcl. 08/07/26 11:45
Accepting new programming clients
by AndrewAMD. 08/06/26 21:25
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 1,474 guests, and 21 spiders.
Key: Admin, Global Mod, Mod
Newest Members
riggi89, shuhari, KD1990, Student_64151, Koti
19230 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
checking File #304380
01/07/10 09:24
01/07/10 09:24
Joined: Apr 2009
Posts: 248
Philippines
seecah Offline OP
Member
seecah  Offline OP
Member

Joined: Apr 2009
Posts: 248
Philippines
Hello All,

Is there any way in Lite-C or a function that I can use for me to check if a file is still being access (write/read mode) by another function and not closed yet??

Thanks,
Sedrix



Can't is not an option™
Re: checking File [Re: seecah] #304410
01/07/10 16:10
01/07/10 16:10
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
var filehandle_n;
...
filehandle_n = file_open_read("adress.txt");
...
filehandle_n = 0;

Now you can check in another function, if filehandle_n have 0 or the handle of the file.

Re: checking File [Re: Widi] #304454
01/08/10 03:28
01/08/10 03:28
Joined: Apr 2009
Posts: 248
Philippines
seecah Offline OP
Member
seecah  Offline OP
Member

Joined: Apr 2009
Posts: 248
Philippines
Okay Thanks, I just thought that there's a function for that..^^



Can't is not an option™

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1