Advertisement
Guest User

Untitled

a guest
Dec 30th, 2016
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. #include <FTPEx.au3>
  2. #include <MsgBoxConstants.au3>
  3. #include <Array.au3>
  4. #include <File.au3>
  5.  
  6.  
  7. Local $server = 'toghrul.hopto.org' ; UNIVERSITY OF CAMBRIDGE ANONYMOUS FTP SERVER
  8. Local $username = 'toghrul'
  9. Local $pass = 'salam123'
  10.  
  11. $Open = _FTP_Open("--private")
  12. consolewrite( "Open: " & $Open & @crlf )
  13. $Conn = _FTP_Connect($Open, $server, $username, $pass)
  14.  
  15.  
  16. ; reading it(this is where it stops working and returns blank.)
  17. $ftpfileopen = _FTP_FileOpen($Conn,"asdasd.txt")
  18. Local $ftpfile = _FTP_FileRead($ftpfileopen,100000)
  19.  
  20. Global $convertstring = BinaryToString($ftpfile)
  21.  
  22. ConsoleWrite($convertstring&'\n')
  23.  
  24. _FTP_Close($Conn)
  25. _FTP_Close($Open)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement