Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. delete a csv file

delete a csv file

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 497 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    micheal15
    wrote on last edited by
    #1

    Hello, I have created a file and I am saving data in it. I would like to know please how I can delete this file if it has reached his maximum size

    J.HilkJ 1 Reply Last reply
    0
    • M micheal15

      Hello, I have created a file and I am saving data in it. I would like to know please how I can delete this file if it has reached his maximum size

      J.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by
      #2

      @micheal15
      https://doc.qt.io/qt-6/qfile.html#remove-1


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      M 1 Reply Last reply
      2
      • J.HilkJ J.Hilk

        @micheal15
        https://doc.qt.io/qt-6/qfile.html#remove-1

        M Offline
        M Offline
        micheal15
        wrote on last edited by
        #3

        @J-Hilk thank you but how can I put the condition of the maximum size

        J.HilkJ JonBJ 2 Replies Last reply
        0
        • M micheal15

          @J-Hilk thank you but how can I put the condition of the maximum size

          J.HilkJ Offline
          J.HilkJ Offline
          J.Hilk
          Moderators
          wrote on last edited by
          #4

          @micheal15

          what do you mean with maximum file size ?

          NTFS, I assume you're on windows, has a max file size of 256 terabytes, I kind of doubt you mean this.


          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          1 Reply Last reply
          1
          • M micheal15

            @J-Hilk thank you but how can I put the condition of the maximum size

            JonBJ Offline
            JonBJ Offline
            JonB
            wrote on last edited by
            #5

            @micheal15
            Did you try looking at qint64 QFile::size() const?

            1 Reply Last reply
            3

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved