Writing multiple files simultaneously inside the loop
-
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
-
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
-
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
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.<
-
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
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.