Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Writing multiple files simultaneously inside the loop

Writing multiple files simultaneously inside the loop

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorial
4 Posts 4 Posters 0 Views 1 Watching
  • 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.
  • V Offline
    V Offline
    VCProgrammer
    wrote on last edited by
    #1

    Hi all, i want to write multiple files inside a loop simultaneously. But how many files will be written at a time will be decided at run time but, i know the maximum limit can be 15. I am not getting how to create object of class FILE and then how to access them. Can anybody help me in this. Thanks in advance

    S C R 3 Replies Last reply
    0
    • V VCProgrammer

      Hi all, i want to write multiple files inside a loop simultaneously. But how many files will be written at a time will be decided at run time but, i know the maximum limit can be 15. I am not getting how to create object of class FILE and then how to access them. Can anybody help me in this. Thanks in advance

      S Offline
      S Offline
      Sarath C
      wrote on last edited by
      #2

      Can this[^] and this[^] help you?

      -Sarath.

      My blog - codereflect.com

      Rate the answers and close your posts if it's answered

      1 Reply Last reply
      0
      • V VCProgrammer

        Hi all, i want to write multiple files inside a loop simultaneously. But how many files will be written at a time will be decided at run time but, i know the maximum limit can be 15. I am not getting how to create object of class FILE and then how to access them. Can anybody help me in this. Thanks in advance

        C Offline
        C Offline
        Code o mat
        wrote on last edited by
        #3

        Create using fopen[^] Write using fwrite[^], fputs[^], fprintf[^] and alike. Close by fclose[^]. The fopen page even has a small example around the bottom.

        > The problem with computers is that they do what you tell them to do and not what you want them to do. < > If it doesn't matter, it's antimatter.<

        1 Reply Last reply
        0
        • V VCProgrammer

          Hi all, i want to write multiple files inside a loop simultaneously. But how many files will be written at a time will be decided at run time but, i know the maximum limit can be 15. I am not getting how to create object of class FILE and then how to access them. Can anybody help me in this. Thanks in advance

          R Offline
          R Offline
          Rolf Kristensen
          wrote on last edited by
          #4

          Usually it gives very bad performance to write to multiple files at the same time. Maybe this has changed with the introduction of SSD disks.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups