Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
File.WriteAllText throws on long text - C#
C
C#
•
9mo ago
•
10 replies
LPeter1997
File.WriteAllText throws on long text
Seems like when the string to be written is about 1
.8 megs
, BCL gives up
.
(Image attached
) Why is this so and what would be the recommended way to dump a huge string builder to file then
? Yes I know this isn
't a proper logger
.
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
❔ StreamReader and File.WriteAllText are stepping on each others toes.
C
C# / help
3y ago
❔ File.WriteAllText(string, string?) and similar fail to write to file
C
C# / help
4y ago
❔ Text file
C
C# / help
3y ago
❔ how to save text from TextBox to file?
C
C# / help
4y ago