Silverfrost Forums

Welcome to our forums

Writing text files- taking long time

15 Mar 2013 4:57 #11776

I'm writing 2 text files using FORTRAN each file being 50 MB and I'm opening both files simultaneously and writing.

I find that the tiem taken for writing is perhaps taking longer.

What could be the rpoblem?Can anyoen help

Christy

16 Mar 2013 8:32 #11784

Please can anyone help?

16 Mar 2013 8:56 #11785

If you can provide a short sample program, help may be available.

17 Mar 2013 4:28 #11806

I have 2 files to which I'm writing soem information, they are both text files

open (file_1)

write...I write information to furst file

open (file_2

write...I write info to second file

do something......

again write info to first file 
write info to second file

Could there be a problem if I write info simultaneously?

The files are just 50 MB each

Christy

17 Mar 2013 6:17 #11807

Can you post small working prototype code which measures time for writing two files consequently versus writing two files simultaneously?

17 Mar 2013 7:29 #11808

Yes.

Simultaneosly- 19 minutes

If I generate just one of any of the two files 3 minutes

17 Mar 2013 7:37 #11809

That is unusual indeed unless you write on punchcards, lineprinter or use 40 years old floppy disks LOL.

Post as Paul said above small 20 lines working code demonstrating that difference which we can run on our computers. It takes 3 min to write it. Don't be shy of your code style or dumb errors, we all make mistakes.

Or if the code is tricky to extract small snippet, run the whole code on free Qsoft RAMdrive which has speed 5 GB per second, 10-100 times faster then any harddrive or SSD, and see if this was a hardware issue.

Please login to reply.