473,385 Members | 1,736 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

TextWriter.WriteLine()

I'm using TextWriter to create a .txt file. I'm using TextWriter.WriteLine() to write the string. Suppose my string is very huge say more than 100 characters then the few characters at the end are cut off. How can i determine the maximum no of characters i can store using WriteLine()? so that the remaining characters i can write in the next line?
Mar 14 '08 #1
1 1788
Plater
7,872 Expert 4TB
What do you mean by "cut off"?
I've never seen any truncating by the stream objects.
Mar 14 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
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...
5
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'...
11
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...
3
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",...
54
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,...
1
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...
2
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
2
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...
3
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 ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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$) { } ...
0
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...
0
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...
1
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...
0
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...
0
marktang
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,...
0
Oralloy
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,...
0
jinu1996
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.