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

Write " to a text file

3
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>=test this "testthis""
Nov 18 '08 #1
2 1478
Dököll
2,364 Expert 2GB
Start here,

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

http://bytes.com/forum/thread826055-...text+file.html
Nov 19 '08 #2
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
by: Carol | last post by:
I need to put this whole line into a response.write statement: field delimiter = "\"" how?
1
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...
1
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...
2
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
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...
7
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...
0
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...
21
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
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...
3
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() {...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
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...
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.