Jump to content

Issues with IniWrite


aa2zz6
 Share

Recommended Posts

Is anyone aware of why the iniwrite function puts a space before the file.ini name? How do I remove the space?

It's basically writing it like this: Config.ini   << Space is before the word.

;Create a constant variable in Local scope of the filepath that will be read/written to.
    Local Const $sFilePath = @ScriptDir & "\Mapping\ " & "Config" & ".ini"

    Local $sFilewrite = IniWrite($sFilePath, "Mapping", "Path", "...")

Space Before word.png

Link to comment
Share on other sites

  • Moderators
4 minutes ago, aa2zz6 said:

 

;Create a constant variable in Local scope of the filepath that will be read/written to.
    Local Const $sFilePath = @ScriptDir & "\Mapping\ " & "Config" & ".ini" <<<<<--------You have a space after your last \!

Space Before word.png

Because you're telling it to?

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

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...