Sign in to follow this  
Followers 0
qwertylol

custom definition files access

2 posts in this topic

how do I write this?

it's a text file that will contain definitions like these

a code will generate relevant information for each point of pixel

point_number = 1

x_offset = #

y_offset = #

color_1 = #

color_2 = #

point_number = 2

x_offset = #

y_offset = #

color_1 = #

color_2 = #

how do I write a file I/O that will output a new section of

this

point_number = 1

x_offset = #

y_offset = #

color_1 = #

color_2 = #

and then later read it ?

Share this post


Link to post
Share on other sites



You have a lot of choices. One of the easier ones might be a comma separated values (.csv) format. That way you get one complete entry per line. It is particularly easy with AutoIt to read/write files by whole lines. Just set up your convention, like:

point_number, x_offset, y_offset, color_1, color_2

Look up the following in the help file and check out the example code there:

FileOpen()

FileClose()

FileRead()

FileReadLine()

FileWrite()

FileWriteLine()

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

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