473,395 Members | 2,079 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,395 software developers and data experts.

streamwriter buffer size

Sir,

I need to decode a UUencode string to a binary file. I use below to creat
the binary file. However, how can I know what the buffer size is?

outWriter = New StreamWriter(New FileStream(FullFileName,
FileMode.OpenOrCreate, FileAccess.Write), Encoding.Default, _Buffer_size)
--
Kind regards

Guoqi Zheng
guoqi AT meetholland dot com
Http://www.meetholland.com

Nov 21 '05 #1
3 5991
* "Guoqi Zheng" <no@sorry.nl> scripsit:
I need to decode a UUencode string to a binary file. I use below to creat
the binary file. However, how can I know what the buffer size is?

outWriter = New StreamWriter(New FileStream(FullFileName,
FileMode.OpenOrCreate, FileAccess.Write), Encoding.Default, _Buffer_size)


There are other overloads for the ctor that do not require you to
specify the buffer size.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #2
Thanks for your reply.

yes, I saw an image in UUencode format.

I saw this. begin 666 Quickwatch.JPG

More often, I saw it start with "begin 664". What string can I use to
determine that there is a UUencoded attachment?

--
Kind regards

Guoqi Zheng
guoqi AT meetholland dot com
Http://www.meetholland.com
"Angel J. Hernández" <an**********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
There are a couple of members that you might find useful. Those are:
- byteBuffer
- charBuffer

They're not visible so you need to use Reflection to retrieve their values.
Regards,
P.S.: There's an image attached to this post. It's a streamwriter object
quick watch.

--
Angel J. Hernández M.
MCSD


"Guoqi Zheng" <no@sorry.nl> escribió en el mensaje
news:OE**************@TK2MSFTNGP09.phx.gbl...
Sir,

I need to decode a UUencode string to a binary file. I use below to creat the binary file. However, how can I know what the buffer size is?

outWriter = New StreamWriter(New FileStream(FullFileName,
FileMode.OpenOrCreate, FileAccess.Write), Encoding.Default, _Buffer_size)

--
Kind regards

Guoqi Zheng
guoqi AT meetholland dot com
Http://www.meetholland.com


Nov 21 '05 #3
Thanks, I am trying it now.
--
Kind regards

Guoqi Zheng
guoqi AT meetholland dot com
Http://www.meetholland.com

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:Ou**************@TK2MSFTNGP10.phx.gbl...
* "Guoqi Zheng" <no@sorry.nl> scripsit:
I need to decode a UUencode string to a binary file. I use below to creat the binary file. However, how can I know what the buffer size is?

outWriter = New StreamWriter(New FileStream(FullFileName,
FileMode.OpenOrCreate, FileAccess.Write), Encoding.Default,
_Buffer_size)
There are other overloads for the ctor that do not require you to
specify the buffer size.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: notalent | last post by:
I'm having a problem with a very basic program. I'm creating a app in Visual Studio (2003) C# to zip up a collection of specified files & directories and save them to a certain location. I have...
10
by: Oscar Thornell | last post by:
Hi, I generate and temporary saves a text file to disk. Later I upload this file to Microsoft MapPoint (not so important). The file needs to be in UTF-8 encoding and I explicitly use the...
4
by: David Buchan | last post by:
Hello, I wonder if anyone could help me. I'm using vb.NET and I'd like to read a binary file, byte by byte, and then write to another file (making a duplicate, identical file). I'd then...
3
by: philip | last post by:
If I execute that : Dim Temp as string = "This is a text" Dim sw As StreamWriter Dim fullFileName as string = "c:\text.txt" sw = New StreamWriter(fullFilename) sw.Write(temp) sw.Close() ...
1
by: Max Powers | last post by:
Hello, I have a VB.NET code that creates a StreamWriter file first and then it does a series of procedures that write lines for this StreamWriter. When all the procedures are done, the...
4
by: Heron | last post by:
Hi, Could someone explain me why the following code doesn't work? The memorystream always remains with length 0. MemoryStream input = new MemoryStream();
2
by: Kevien Lee | last post by:
Hi , I had a strang problam ,when i use StreamWriter to append to a file,i found that if i don't close the StreamReader it couldn't write the data into file,the code as folllow that: class...
4
by: ºa¤Ö | last post by:
Dear All, Which performance is better? I think 2 is better because only 1 I/O is performed. Am I right? 1. using (StreamWriter sw = File.Append(FileName)) { sw.WriteLine(text1);...
1
by: MSwanston | last post by:
Hi I need some help with saving retreiving data from the cache, and how best to structure my code. FYI am working in VS2005/under .NET2 Framework. Ok, we have a series of reports that get run via...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.