Results 1 to 4 of 4

Thread: copying a file from one place to another by reading a path from .txt file

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2014
    Posts
    71
    Thanks
    13
    Qt products
    Qt5
    Platforms
    Windows

    Question copying a file from one place to another by reading a path from .txt file

    I have a requirement,where I have a text file which contain the path of all the .c file which are used in a project.I have to create a GUI which on button click read the file or the .c path and open the location,copy the respective .c file in another folder. Just like a script which copy the .c file from source to destination by reading the path from .txt file.

    creating a button and reading a file I don't have any problem.But how can I achieve the opening of source location and copying of file from source to destination.
    Please let me know some example or hint.
    Last edited by anh5kor; 18th January 2016 at 14:01. Reason: updated contents

Similar Threads

  1. Replies: 4
    Last Post: 31st July 2013, 17:34
  2. Displaying file name (not the entire file name path)
    By Ferric in forum Qt Programming
    Replies: 2
    Last Post: 15th November 2011, 04:23
  3. Reading XML file into a data file correctly?
    By falconium in forum Qt Programming
    Replies: 3
    Last Post: 9th May 2011, 18:55
  4. Copying a file
    By Nefastious in forum Newbie
    Replies: 3
    Last Post: 27th October 2009, 14:15
  5. Replies: 2
    Last Post: 5th September 2007, 22:31

Tags for this Thread

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.