Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

stream reading and writing ?

Status
Not open for further replies.

Shaun29

Programmer
Oct 22, 2008
53
US
ok need help to figure this one out

Private Sub AcadDocument_Activate()
'this is my object an open active cad drawing.


End Sub
so how would I stream write or read to write so that my object will send all of its information to a c:\test.text file
and what refrances should I use?( i am using CAD VBA so i need to specify an refrance.

would this work
Dim FS as FILESTREAM
Dim SR AS Stream reader
FS = new FileStream (c:\test.text file'',_
system.IO.filemode.openorcreate,System.IO.fileaccess.write)EOF(1)

SR = New Streamreader (FS)


I am trying to use this so all text information in a bill of material is sent to a text file when drawing is saved.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top