Oishi Posted July 31, 2009 Share Posted July 31, 2009 (edited) I'd like to be able to read and write different data types from files like integers, floats, doubles. Here's and example of what I was talking about: http://www.mediafire.com/download.php?rkmkomnfmyd Its a file that contains spawn list of monsters in a particular map. The number it reads here is the number of monsters that are to be spawned. Is there any include files already written to do/make this process any easier? Thanks for any help. P.S: Don't mind all the includes at the start, its just a list of defaults I like to work with. Edited July 31, 2009 by Oishi Link to comment Share on other sites More sharing options...
qazwsx Posted July 31, 2009 Share Posted July 31, 2009 Filewrite / fileread? Look in the help file. Link to comment Share on other sites More sharing options...
Oishi Posted July 31, 2009 Author Share Posted July 31, 2009 Yeah, I did, but its not exactly what I want. Download the example so you can see what I mean. Link to comment Share on other sites More sharing options...
qazwsx Posted July 31, 2009 Share Posted July 31, 2009 Can't you just post the example here? Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted July 31, 2009 Share Posted July 31, 2009 You can't "read" floats and doubles from files, what you do is FileRead() them, and then use the DllStruct*() funcs to read it as different data types. Here is some nice code by Trancexx that reads information from bitmaps in that way. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
Oishi Posted July 31, 2009 Author Share Posted July 31, 2009 (edited) Oh, ok. Thanks, that's what I needed to know. Thanks for helping. I wasn't sure exactly what it was I had to do or even if autoit was capable of something like this. I just thought it would be better to find out before I continue on with the project. Edited July 31, 2009 by Oishi Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now