put an extra double quote. It should read
swDetail.WriteLine(""1"", " & strId & ",..... )
Phil
-----Original Message-----
From: Thea Burger [mailto:theab@l...]
Sent: 04 September 2002 15:45
To: ASPX_Professional
Subject: [aspx_professional] Streamwriter
Hi,
I have to write to a textfile text that has to look like this in the end:
"1","7912310023098","A","Burger","12345" (double quotes incl.)
I am using FileStream called fsDetail and Streamwriter called swDetail.
The code:
Dim fsDetail As FileStream
Dim swDetail As StreamWriter
fsDetail = New FileStream("PowernetBankrun.txt", FileMode.OpenOrCreate)
swDetail = New StreamWriter(fsDetail)
swDetail.WriteLine("1", " & strId & ",..... ) '******Problem comes in here
How do i get the streamwriter to write the double quotes to the file?
Anyone know of any escape characters for vb.net? I know in c# it is \.
Thanks,
Thea
---
ASP.NET 1.0 Namespace Reference with C#
http://www.wrox.com/acon11.asp?ISBN=1861007442
ASP.NET 1.0 Namespace Reference with VB.NET
http://www.wrox.com/acon11.asp?ISBN=1861007450
These books are a complete reference to the ASP.NET namespaces
for developers who are already familiar with using ASP.NET.
There is no trivial introductory material or useless .NET
hype and the presentation of the namespaces, in an easy-to use
alphabetical order ensures a user-friendly reference format.
We provide in-depth coverage of all the major ASP.NET classes,
giving you those real-world tips that the documentation doesn't
offer, and demonstrating complex techniques with simple
examples.
---