|
-
Mar 7th, 2002, 03:50 AM
#1
Thread Starter
Junior Member
File Handling
Hi,
I want to open a text file in Read-write mode is it possible in VB???
Cheer's
Ravi.
-
Mar 7th, 2002, 03:58 AM
#2
Thread Starter
Junior Member
Sorry.......
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...
-
Mar 15th, 2002, 12:57 PM
#3
New Member
oh yes u can!
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
-
Mar 18th, 2002, 07:21 AM
#4
Thread Starter
Junior Member
Thank u
Thank u For that but can i know how to write or better where can i good info on that..
-
Mar 18th, 2002, 10:46 AM
#5
New Member
check out this link n try out the code given!
-
Mar 18th, 2002, 12:46 PM
#6
Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|