As the title says, I’m searching for the most efficient option to use for my program.
Basically my program is doing many I/O tasks ( Opening files, reading them, searching for 4 specific bytes, closing the files )
I have built my program using the normal synchronous method but I feel like the program can work much faster using some of the method listed on the title, which one would be the fastest method to achieve that goal ?
PS : I’m using it on .NET framework instead of .NET core, so please advice me without forgeting that, thanks.
PS2 : I don’t want to use any Nuget package too, only the .net framework itself
>Solution :
Just use Task combined with async/await.