Skip to main content
-3 votes
1 answer
175 views

I'm trying to output a text file with ANSI encoding: Encoding.RegisterProvider(CodePagesEncodingProvider.Instance); var encoding = Encoding.GetEncoding(1252); using (var streamWriter = new ...
Ben5's user avatar
  • 933
0 votes
0 answers
24 views

Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled. 2025-04-01T15:07:23.041+05:30 ERROR 33273 --- [pnp-reporting] [ ...
Pallavi Bhatia's user avatar
0 votes
0 answers
530 views

While writing to a .gz file, and when the file size reaches about 291,261,644,800 bytes, I get the following. at System.IO.Strategies.BufferedFileStreamStrategy.WriteSpan(ReadOnlySpan`1 source, ...
Dr. Strangelove's user avatar
0 votes
1 answer
45 views

.NET 4.8 VS 2019 I have a class in my program that logs text to a file to log command activity and free text messages. The program is crashing for one (1) customer of tens of thousands with a "...
John Tamburo's user avatar
1 vote
0 answers
29 views

Until now I've had no dealing with NetworkStream and am having to use it for some TCP comms with a tcp enabled device, but I'm seeing some strange behaviour and it's got me asking the question above......
VariableSquid's user avatar
3 votes
1 answer
91 views

I am trying to open a file in c#, then write some text into it, and conclude by dumping a compression of a bytes array into the same file. So, the file I want to create is something like ...
5xum's user avatar
  • 5,575
-1 votes
1 answer
67 views

In my program recovering data from the db (there are over 500k lines) I create a path with this data and write it in a file (in the db as a where clause I insert what the date range is, the lower it ...
DevMD's user avatar
  • 39
1 vote
1 answer
69 views

I deleted my previous post in hopes this one is better and clear to be able to get help. I appreciate it. So far, with my code I am uploading a CSV file to format it as: I have skip the headers and ...
Ivonne Aspilcueta's user avatar
0 votes
2 answers
71 views

I need to read all content of a file but keep only some of the content and append new content. So I tried to use READLINES filter the lines I need to keep then rewrite the file with the kept lines and ...
Ernesto's user avatar
  • 35
1 vote
1 answer
998 views

In ASP.NET one has three options (that I know of) for writing directly to the response buffer. Given the following data: var str = "Hello World"; var bytes = Encoding.UTF8.GetBytes(str); We ...
user3163495's user avatar
  • 3,968
0 votes
1 answer
285 views

To my understanding when I write a file using notepad++ I can write the symbols ’ and & without a problem in a text file. Both are valid ASCI symbols and they are not that exotic either. & = ...
Peter's user avatar
  • 2,336
0 votes
0 answers
43 views

I've programmed a console app using C#. When I run the console app I receive the error noted above. My programming logic is as follows: class Program { static void Main(string[] args) { ...
SidC's user avatar
  • 3,199
0 votes
2 answers
460 views

I have an XML file written in C# using StreamWriter with this code: String filename = Session.SessionID + ".xml"; String filepath = "h:\\root\\home\\mchinni-001\\www\\site1\\OUTFolder\\&...
Mike Chinni's user avatar
0 votes
1 answer
112 views

I have a logging class in which I spawn a Task to append all messages from a BlockingCollection<string> to the log file, sleep two seconds, and repeat infinitely, until the fifo is completed. ...
amonroejj's user avatar
  • 653
0 votes
1 answer
130 views

So I have a button made from my xaml file (view), called Export. When the user clicks on it, the logs created during the run of the app get exported to Logs.txt. If there are Warnings, Errors or ...
PinkGoat_'s user avatar

15 30 50 per page
1
2 3 4 5
102