zxtnt09 Posted April 2, 2015 Share Posted April 2, 2015 (edited) please delete post thanks Edited April 14, 2015 by hasan11 Link to comment Share on other sites More sharing options...
Herb191 Posted April 2, 2015 Share Posted April 2, 2015 Something like this? $sFilePath = @ScriptDir & "\member.ini" InetGet("http://test.com/member.ini", $sFilePath) Local $sUserName = "Username" = IniRead($sFilePath, "section", "Username") Local $sPassword = IniRead($sFilePath, "section", "Password") zxtnt09 1 Link to comment Share on other sites More sharing options...
Herb191 Posted April 2, 2015 Share Posted April 2, 2015 (edited) Try this: Local $sFilePath = @ScriptDir & "\member.ini" ;change to the right URL ;InetGet("http://test.com/member.ini", $sFilePath) Local $sUserName = IniRead($sFilePath, "UserAndPass", "Username", Default) Local $sPassword = IniRead($sFilePath, "UserAndPass", "Password", Default) ConsoleWrite("The user name is: " & $sUserName & @CRLF) ConsoleWrite("The password is: " & $sPassword & @CRLF) The ini file I made for testing is called member.ini and looks like this: [userAndPass] Username=ThisIsMyName Password=ThisIsMyPass Edited April 2, 2015 by Herb191 zxtnt09 1 Link to comment Share on other sites More sharing options...
Herb191 Posted April 2, 2015 Share Posted April 2, 2015 You're welcome. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now