lua-users home
lua-l archive

Re: Windows IO lib

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> I need an IO lib specifically for Windows,
> which uses the windows file management functions.
> The list below shows the mapping I would do:
>
> FILE* -> HANDLE
> fopen -> CreateFile
> fread -> ReadFile
> fwrite -> WriteFile
> tmpfile -> GetTempFileName + CreateFile
> fclose -> CloseHandle
>
> Is this already done?
Yes and more (sockets), take a look at LuaSys (http://lua-users.
org/files/wiki_insecure/users/tnodir/).

AltStyle によって変換されたページ (->オリジナル) /