From a9d4e4e7111cf81de16c980d488fe10cf1affdcd Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 13 Jul 2005 23:30:28 +0000 Subject: [PATCH] New natives for reading dirs --- plugins/include/file.inc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/include/file.inc b/plugins/include/file.inc index b467f8a4..4630923a 100755 --- a/plugins/include/file.inc +++ b/plugins/include/file.inc @@ -69,6 +69,11 @@ native filesize(const filename[],{Float,Sql,Result,_}:...); //Delete a file (delete_file macro) native unlink(const filename[],{Float,Sql,Result,_}:...); +//Returns a handle to a directory +native open_dir(dir[], firstfile[], length); +native next_file(dirh, buffer[], length); +native close_dir(dirh); + //These are type specific file getting and writing commands: //c=char, s=short, l=long, i=int, f=float native fgetc(file); //read char (size 1)