© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
33 replies
Pandetthe

✅ Async writing and reading from file

Hi! I am creating some kind of storage using streamwriter/streamreader with CSVHelper that will be accessed from different threads. I am thinking about what is the best solution: have some lock variable, use filesharing in FileStream or my plan have no sense and there is other, faster and better way to do this. And are there any possible exception with filesharing?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

File writing
C#CC# / help
3y ago
❔ Reading from a JSON file
C#CC# / help
3y ago
Writing and Reading binary files not working
C#CC# / help
3y ago