Hi,
I want to open a text file in Read-write mode is it possible in VB???
Cheer's
Ravi.
Printable View
Hi,
I want to open a text file in Read-write mode is it possible in VB???
Cheer's
Ravi.
Sorry Sorry i have posted it in wrong forum. I realised it after posting it. Sorry, but if in any one knows the answer do help me. Thank u...
There is the FSO or file system object used for opening any file and read /write into it.
dim fso as new filesystemobject
dim txtfile as file
dim txtstream as textstream
set txtfile=fso.getfile("c:\..........") 'enter the path of the file
'u wanna read
set txtstream =txtfile.openastextstream(for reading)
do until txtstream.atendofstream
txtstream.readline
ps:-referance-microsoft scripting runtime
Thank u For that but can i know how to write or better where can i good info on that..
you could open the file as binary or random and use the put and get methods.
Although tedious, it is open for read and write simultaneously.
Hope this helps.
Cedric