Jump to content

INI Reading


Recommended Posts

INI values are stored on a single line so there is no such thing as a "multi-line INI value". If you need to have embedded carriage returns or line feeds, you'll need to translate that to something else on write and translate back to CR or LF on read.

Link to comment
Share on other sites

INI values are stored on a single line so there is no such thing as a "multi-line INI value". If you need to have embedded carriage returns or line feeds, you'll need to translate that to something else on write and translate back to CR or LF on read.

Got an example?
Link to comment
Share on other sites

No, nor would I show you one. It's a simple concept. If you have any chance at all at being half-way decent at AutoIt, you should be able to figure this very simple problem out on your own. Me holding your hand showing you how to do it isn't going teach you much.

Link to comment
Share on other sites

  • Moderators

Got an example?

StringReplace($String, @CR, Chr(01))

Do whatever

StringReplace($String, Chr(01), @CR)

Edit:

Before I'm flammed for showing how to change something, do something, then change it back... please note the post times :nuke:

Edit2:

Then again, the more I look at it, it looks like another one of my, :P wtf am I talking about posts.

Edited by SmOke_N

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

  • Moderators

Woo! Don't give him code, tell him that he should replace every Carridge Return with "@CR" and every Line Feed with "@LF". Then let him figure out how to convert them himself. This is in no way sexist, using the term "him", unknown is merely a difficult name to distinguish.

I have absolutely no idea what your talking about or who you are talking too (your reply is more confusing than the thread itself)... "him"? I don't see that anywhere. And if your talking to me, if you regard 2 lines "code" then sorry... but... just saying StringReplace() would have been the same IMHO.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...