Last post Aug 17, 2016 11:10 PM by PaulTheSmith
Aug 16, 2016 11:57 AM|KeeEdwins|LINK
Please I have two csv files in a folder which read into an mssql database.
Is it possible to read both files concurrently and not having to wait for one to finish reading before the other.
Any idea or sample code would be much appreciated.
Thanks and Regard
Aug 16, 2016 12:54 PM|maherjendoubi|LINK
You can use aync for file access : https://blogs.msdn.microsoft.com/csharpfaq/2012/01/23/using-async-for-file-access
Aug 17, 2016 11:10 PM|PaulTheSmith|LINK
Are the two files on the same hard drive? There is only one head on the hard drive. It would be slower to read both files at the same time as you would cause a lot of head movement. Read a file, store it, read a file store it. The slow part is the disk
IO, not the processing.