Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <FTPEx.au3>
- #include <MsgBoxConstants.au3>
- #include <Array.au3>
- #include <File.au3>
- Local $server = 'toghrul.hopto.org' ; UNIVERSITY OF CAMBRIDGE ANONYMOUS FTP SERVER
- Local $username = 'toghrul'
- Local $pass = 'salam123'
- $Open = _FTP_Open("--private")
- consolewrite( "Open: " & $Open & @crlf )
- $Conn = _FTP_Connect($Open, $server, $username, $pass)
- ; reading it(this is where it stops working and returns blank.)
- $ftpfileopen = _FTP_FileOpen($Conn,"asdasd.txt")
- Local $ftpfile = _FTP_FileRead($ftpfileopen,100000)
- Global $convertstring = BinaryToString($ftpfile)
- ConsoleWrite($convertstring&'\n')
- _FTP_Close($Conn)
- _FTP_Close($Open)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement