Jump to content

Recommended Posts

Posted (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 by Oishi
Posted

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.

Posted (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 by Oishi

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...