🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

File IO Class

Started by
1 comment, last by Rain Dog 19 years, 3 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.
Advertisement
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.
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