I know how to write files in vb6 but the problem is in my file there are many ( ” ) and many lines . I dont want to use vbcrlf to enter or “”” to give ” result. Is there any easy way to make file in vb6 without using complex things like vbcrlf or _ etc etc.
I want the way in which the data gets entered exactly i type without taking any difficulty for inverted commas or endlines.
If you need to work with large blocks of literal text it may be easier to create these as separate text files distributed with the program. Read and use them as needed at runtime.
If you need these embedded within the program you can store them as custom resources, either in Unicode or in ANSI along with appropriate conversion to Unicode after retrieving the data using
LoadResData()calls.Avoid
LoadResString()which is meant for use in localizing application text, another topic altogether.Most programs don’t have a need for so much boilerplate text though. It can be useful for things like long SQL statements or maybe templates for XML data files. Simple templates can be processed by inserting
Replace$()targets (“variables”) within them such as$PATH$or$V1$and such and then inserting your unique information at runtime.