473,387 Members | 1,669 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,387 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 3493
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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.