Sign in to follow this  
Followers 0
Oishi

[Help] File Reading

6 posts in this topic

#1 ·  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

Share this post


Link to post
Share on other sites



Filewrite / fileread? Look in the help file.

Share this post


Link to post
Share on other sites

Yeah, I did, but its not exactly what I want. Download the example so you can see what I mean.

Share this post


Link to post
Share on other sites

Can't you just post the example here?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

#6 ·  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

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0