|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
I have created a program , really simple one to open a text file and to save strings to it
Dim strDataField,strDataField1,strDataField2,strDataFi eld3As String Open "test\" + filename.Text + ".txt" For Output As #1 'location of the file. Write #1, strDataField, 'The things you want to save" Close 1 so the out of the file is like the following "Halloo" , " Ashoor" , "Null ", and so on so how i ant get rid of the inverted commas in the string since i have alot of strings inside the file or is there away to convert the string or so |
|
#2
|
|||
|
|||
|
What exactly do you mean 'inverted' commas? Whenever you write to a sequential file using VB 6.0, it will be comma delimmited and all strings will have quotes (") around them. Numbers will not have quotes around them. Exactly what are you asking for so that we may be able to give you a more complete answer.
|
|
#3
|
|||
|
|||
|
am sorry sicne i didnt put my question in the right manner
I have done a program which takes values of strings and write them to a file. The file output is the followin below "101363 ","NUD","RTA" so my question is how to get red off the Two Quotes in the string i know this is becuase VB6 functionality but is there a way to get red of them regards and thanks for your help |
|
#4
|
|||
|
|||
|
Hi,
Instead of using the Write function, use the Print function on the file. Code:
Print #hFile, sExportLine That should get rid of the quotes around the strings. Then some other things...
Grtz.© M. |
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > Exporting Strings to a file without the Inverted Commas |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|