Hey guys, is there any way to read and write an object to a text file?
For example in java i can open a ObjecOutputStream and just write an object. What about in vb?
Thanks
M

Recommended Answers

All 5 Replies

Hi,

u can use this code:

Dim FN as Long
Dim i As Integer
 
FN = FreeFile
Open "C:\MyText.txt" For Output As FN
Print #FN, "This is My First File"
Print #FN, "Second Line"
Close FN

Regards
Veena

but can i do
Dim bla as HashTable
Print #FN, bla

Hi,

I dint get u..?
u want to store Pair of Key and Values...?


Regards
Veena

Hi,

I dint get u..?
u want to store Pair of Key and Values...?

Read This if u want Implematation of Hash Table in VB6

Regards
Veena

No, thanks but i need to store an object in a file.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.