Results 1 to 2 of 2

Thread: file_get_contents in qml

  1. #1
    Join Date
    Oct 2015
    Posts
    46
    Thanks
    19
    Platforms
    Windows

    Default file_get_contents in qml

    hello
    I need to similar code in the Qml:
    Qt Code:
    1. $zipf=file_get_contents('http://site.ir/file.zip');
    2. file_put_contents('brooz/brooz.zip', $zipf);
    To copy to clipboard, switch view to plain text mode 
    thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: file_get_contents in qml

    QFile::copy(), no need to read and write the content just to duplicate a file.

    Cheers,
    _

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.