473,396 Members | 1,846 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,396 software developers and data experts.

writeline function without " "

Hello ,

I use the following to write to a file:

FileOpen(1, FileName, OpenMode.Output) ' Open file for output.
WriteLine(1, TextBox11.Text)
WriteLine(1, "Test text")
FileClose(1)
In the text file each line begins with " (double quote) and ends with ".
Is there a way to write to a file without the double quotes?

Best regards, Jurgen Oelremans
Nov 22 '05 #1
3 3495
Hi Jurgen,

Are you sure of that, it should not, normally it only shows like that in the
debugger?

However have a look at the streamwriter a way it is more done now.

http://msdn.microsoft.com/library/de...ClassTopic.asp

I hope this helps,

Cor

I use the following to write to a file:

FileOpen(1, FileName, OpenMode.Output) ' Open file for output.
WriteLine(1, TextBox11.Text)
WriteLine(1, "Test text")
FileClose(1)
In the text file each line begins with " (double quote) and ends with ".
Is there a way to write to a file without the double quotes?

Best regards, Jurgen Oelremans

Nov 22 '05 #2
WriteLine is designed to print your string(s) in double
quote, and if you are passing an array, it will put commas
to separate them. Use PrintLine if you just want to print
the *text*.

However Cor's idea to use StreamWriter is more efficient
and reliable way.

--
Hope this helps,
Zeeshan Mustafa, MCSD
"Jurgen Oerlemans" <ju**************@envirolab.no_spam.nl> wrote in message
news:40**********************@news.wanadoo.nl...
Hello ,

I use the following to write to a file:

FileOpen(1, FileName, OpenMode.Output) ' Open file for output.
WriteLine(1, TextBox11.Text)
WriteLine(1, "Test text")
FileClose(1)
In the text file each line begins with " (double quote) and ends with ".
Is there a way to write to a file without the double quotes?

Best regards, Jurgen Oelremans

Nov 22 '05 #3
Thans Cor,
That does the job!

Jurgen


"Cor Ligthert" <no**********@planet.nl> wrote in message
news:uD**************@TK2MSFTNGP10.phx.gbl...
Hi Jurgen,

Are you sure of that, it should not, normally it only shows like that in the debugger?

However have a look at the streamwriter a way it is more done now.

http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfSystemIOStreamWriterClassTopic.asp
I hope this helps,

Cor

I use the following to write to a file:

FileOpen(1, FileName, OpenMode.Output) ' Open file for output.
WriteLine(1, TextBox11.Text)
WriteLine(1, "Test text")
FileClose(1)
In the text file each line begins with " (double quote) and ends with ".
Is there a way to write to a file without the double quotes?

Best regards, Jurgen Oelremans


Nov 22 '05 #4

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

Similar topics

3
by: Jurgen Oerlemans | last post by:
Hello , I use the following to write to a file: FileOpen(1, FileName, OpenMode.Output) ' Open file for output. WriteLine(1, TextBox11.Text) WriteLine(1, "Test text") FileClose(1) In the...
4
by: jabailo | last post by:
This is driving me crazy. I finally got the Remoting sample chat application working almost. When I run the chat client in VS.NET it goes into an endless loop -- that's because I assume that...
2
by: ÕÔÁ¢ÈÊ | last post by:
I have a large number of Console.WriteLine() function to display debug information debug mode. Now,I want to save them to a text or display them in a text box.How Can I do it?? thank you for...
3
by: Roy Gourgi | last post by:
Hi, How would I set the width of lnSize to 6 in the statement Console.WriteLine("Size of {0} ", lnSize); Furthermore is there a way to combine these 3 statements into 1 ...
1
by: Grey | last post by:
Can I use System.Console.WriteLine('fasfasdf') in ASP.NET development as I need to print out some message in the console during the debug stage..
5
by: portroe | last post by:
Hi I am using console.Writeline in my simple program. I do not however see anything happening in the output window when I debug, there are also no error messages, Has anybody a tip on what...
2
by: Fred Dag | last post by:
Hi, When writing using both these methods ( StreamWriter.Write("\n") vs WriteLine() ) to a file and open in Notepad I see a special character instead of newlines with Write("\n") vs a newline...
1
by: =?Utf-8?B?RXJpayBFY2toYXJkdA==?= | last post by:
I am trying to create a class or function which does one extra thing then performs a normal Console.WriteLine, preferrably with all the overloads available and intact. Where I currently have: ...
3
by: Curious | last post by:
I''ve created a simple Console Application in C#.NET (.NET 2.0), and I have the following code: Console.WriteLine("Now let us begin!"); However, the string, "Now let us begin!", never shows up...
2
by: Tenaious | last post by:
Hi, Sorry about such a ridicules question, but I have no clue what’s going on. I'm Using Visual Studio 08, programming in C++. I have a Serial Port created with: static...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
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...

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.