reading strings from a data file 
Author Message
 reading strings from a data file

I know that in Visual Basic, whenever you save strings to a data file, the
string is saved with the quotations on each side.  Is there a way to save
strings and/or read them without including the quotation marks.


Sat, 03 Jul 2004 10:59:02 GMT  
 reading strings from a data file

Quote:

> I know that in Visual Basic, whenever you save strings to a data file, the
> string is saved with the quotations on each side.  Is there a way to save
> strings and/or read them without including the quotation marks.

Hi,
  Instead of using WRITE, use PRINT. This will eliminate the quotation
marks.

  You would then read in the entire line of text, and parse it using
MID$.

  For VB Windows, you could also use the JET engine to read/write text
files. You would need to create a SCHEMA.INI file to describe the
file.

  Let me know if this helps, or if you would like more detail.

Joe



Sat, 03 Jul 2004 23:17:45 GMT  
 reading strings from a data file

Quote:

> I know that in Visual Basic, whenever you save strings to a data file, the
> string is saved with the quotations on each side.  Is there a way to save
> strings and/or read them without including the quotation marks.

If it would still suit your needs, you could try using the ordinary
Basic file access method: OPEN (see your help file).

--
Cellphone: 0038631752815

Don't feel bad about asking/telling me anything, I will always gladly
reply.

Digging for info? Try AI Meta Search:
Http://WWW.AIMetaSearch.Com

MesonAI -- If nobody else wants to do it, why shouldn't we?(TM)
Http://WWW.MesonAI.Com



Sat, 03 Jul 2004 23:06:26 GMT  
 reading strings from a data file

Quote:
> Is there a way to save
>strings and/or read them without including the quotation marks.

???????   Use a text file instead?  Read the file using variables for
string-types.  (?)


Sun, 04 Jul 2004 03:51:25 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. reading strings from a data file

2. reading INI file/exporting string data

3. ** File I/O ** Need help reading text file into String variable

4. Reading Words from a data string

5. Reading string data from Internet

6. File Association/reading text file data

7. UDL File - How To Read Data Source section of UDL File

8. reading strings from a text file

9. open txt file and read strings

10. Problem reading in a string from file

11. Reading a binary file and storing as a string

12. VB6 : How to read partial string within a text file

 

 
Powered by phpBB® Forum Software