by: Ronald Moolenaar |
last post by:
Hi,
My colleague implemented a class overwriting TextWriter. What he tried
to do was logging to the event logger and logging to console. As you
can see in the code below, the part of 'logging to...
|
by: Wayne Wengert |
last post by:
I am trying to run a sample from the on-line help and I am getting the error
below on this line of code
Dim writer As TextWriter = New StreamWriter(filename)
The error is:
Type 'TextWriter'...
|
by: D |
last post by:
I have a winforms app that I'm reading some records from a datareader and
writing them out to a file like so
SqlDataReader dataReader = sqlCommand.ExecuteReader();
TextWriter textWriter = new...
|
by: fniles |
last post by:
Is this the correct syntax to make a Textwriter thread safe ? Thank you.
Dim swError As TextWriter
Dim swErrorSync As TextWriter
swError = New StreamWriter(Application.StartupPath & "\Log.txt",...
|
by: Zytan |
last post by:
I have a log class that makes a synchronized TextWriter like so, in
the constructor:
StreamWriter sw = new StreamWriter(filename);
tw = TextWriter.Synchronized(sw);
In the destructor,...
|
by: jtertin |
last post by:
I am currently using the following code to make sure a file is
writable (i.e. is not in use) by using the CanWrite method of the
FileStream object. Using the code below, the TextWriter is still...
|
by: Carla Simeoni |
last post by:
Some sample source codes use TextWriter other StreamWriter for writing text into a file.
What are the differences ?
Carla
|
by: kengtung |
last post by:
Greetings all,
I just started programming with C# (.Net FW 1.1) last year and still
learning. Previously I am using VB 6.0.
Recently, in one application, I encountered a C# error "Cannot write...
|
by: Author |
last post by:
I have always been wondering if there is any significant different
between doing
System.Console.WriteLine("Employee Name = " + employee.FirstName + " "
+ employee.LastName);
and
...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|