473,749 Members | 2,384 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Write " to a text file

3 New Member
Hi,

I'm trying to write the following line into a text file:
<start>=test this "testthis"

the problem is that, when I try to write the ", vb thinks I'm ending the line I want to write...
I was using print:
Print #iFileNo, "<start>=te st this "testthis""
Nov 18 '08 #1
2 1492
Dököll
2,364 Recognized Expert Top Contributor
Start here,

if that does not work, come back and stay tuned:

http://bytes.com/forum/thread826055-...text+file.html
Nov 19 '08 #2
rpicilli
77 New Member
HI There

There more than one way to do that.

Supose you want to display the following message"

Hello "world".

You could type the following

Expand|Select|Wrap|Line Numbers
  1.  
  2. dim myStr as string = "Hello """ & "world" & """ & "."
  3.  
  4. or
  5.  
  6. dim myStr as string = "Hello " & chr(34) & "world" & chr(34) & "."
  7.  
  8.  
Either case you'll have the same result. By the way there is 3 times "


I hope this help you

Rpicilli
Nov 19 '08 #3

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

Similar topics

7
1917
by: Carol | last post by:
I need to put this whole line into a response.write statement: field delimiter = "\"" how?
1
18908
by: Mark Richards | last post by:
The solutions for the following problems seems to be simple but I did not found a (convenient) solution: Assume we have a number of elements of the same type under a common parent e.g. <person ... myattr="aaa">Paul</person> <person ... myattr="bbb">Peter</person> <person ... myattr="ccc">Karl</person> ..... <person ... myattr="ddd">Stan</person>
1
3257
by: Kevin Potter | last post by:
We have an application that has been running on IIS4 and IIS5 for quite some time, without problem We're now migrating to IIS6 (windows/2003), and have run into a what might? be a Javascipt problem/question... The snippet of code in question is: <script language="JavaScript"><!-- document.write("<script src='/fp/"+includename+"'></script>"); // -->></script>
2
5778
by: bissatch | last post by:
Hi, I am trying to use JavaScript to write a table column on a web page. The code is as follows: <html> <head> <script> function displaycount() {
8
1298
by: Mrozu | last post by:
Hi When I try write to file(with StreamWriter) some string, i have some problem. I can't write text with "". For example i want to wrote "Hello" . When i make Dim sw As New System.IO.StreamWriter("C:\text.txt") sw.write("Hello") ..
7
2716
by: samuelberthelot | last post by:
Hi, I have the following in my asp page: <% response.write(Header) %> where Header contains HTML markup such ass <html> <body> .... I must write the code in the aspx file and not in the code behind so that the markup are generated at correct places in html stream.
0
3582
by: DC | last post by:
The problem I'm using the .NET GridView and FormView objects for the first time and im getting the error "An OleDbParameter with ParameterName '@ID' is not contained by this OleDbParameterCollection" whenI try to write a new record. Delete and Modify work fine its just the add record function causes the error.
21
7855
by: comp.lang.tcl | last post by:
set php {<? print_r("Hello World"); ?>} puts $php; # PRINTS OUT <? print_r("Hello World"); ?> puts When I try this within TCL I get the following error:
6
1375
by: AdamOnAccess | last post by:
I have to load a string of text into a text file and then open the file in notepad. Here's my code: newTxt = "C:\PathTo\newTxt.txt" Open newTxt For Output As #1 Write #1, stringOfText_variable Close #1 FollowHyperlink newTxt Everything works fine accept one thing. Quotes are appearing before and after the text and I can't seem to get rid of them. The finished text file always looks like this.. "
3
4286
by: skorch1 | last post by:
I want to write that "mjd1" value to a text file. I tried it using fprinf() function. but it dint work. #include<iostream.h> #include<conio.h> #include<dos.h> #include<stdio.h> void main() { clrscr(); FILE *TempFile;
0
8996
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8832
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9388
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9333
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6800
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4608
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3319
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2217
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.