Advertisement

File IO Class

Started by March 26, 2005 03:04 AM
1 comment, last by Rain Dog 19 years, 8 months ago
Has anyone tried to register ifstream or ofstream objects or a simple wrapper class based off of these objects for simple File IO operations? I have a basic class that works just fine if i use the object in a test app, but when i register the class with AS and call it from script, the stream objects do not function as intended, everything is registered properly and all of the code is called correctly as i have stepped through it all, but it just fails to work.
I've actually managed to register the iostream classes, and have submitted it to witchlord. It's available on the extras page. When I tested it, it worked fine with file streams as well.

However, I havn't managed to try it on the newsest version (2.x), but since I didn't use pointers (I did use references though), it should work!

Let me know if there are any problems.
Advertisement
I decided just to use Win32 File IO API, CreateFile/WriteFile/ReadFile.

Not much more work and they work =)

This topic is closed to new replies.

Advertisement