Jump to content

FileReadLine not returning all characters in a line


Recommended Posts

Hello Everyone, 

I am having a bit of trouble getting my FileReadLine function to read all the characters in a specific text file. Here is my code. 

Func PastePassword() ;Paste Password
        $file = ('C:\Text\Logins\MacroPWList.txt')
        FileOpen($file, 0)
        For $i = 2 to _FileCountLines($file)
            $line = FileReadLine($File, 2)
            GUISetState(@SW_HIDE, $wsi_form)
            Sleep(350)
            Send($line)
            Sleep(150)
            Send("{Enter}")
            ExitLoop
        Next
EndFunc

$line should return the following string "EY@RdJ5S}#<r8rh"

However, instead $line is returning "EY@RdJ5S}<r8rh"

For some reason it is leaving out the # sign in the string. Does anyone know why that is?

 

Thanks for all your help!

Edited by xiantez
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

×
×
  • Create New...