Creating a binary text file?

Discussion in 'AutoCAD' started by Bill Wright, Feb 5, 2004.

  1. Bill Wright

    Bill Wright Guest

    I need to be able to create a binary file from text. It appears that the
    TextStream object doesn't have a binary option. Has anyone done this
    before and may have some example code?
     
    Bill Wright, Feb 5, 2004
    #1
  2. Bill Wright

    Kevin Terry Guest

    Open strFile For Binary As intFile
    Put intFile, , varList
    Close intFile

    varlist happens to be an array of variants in use in my program, but i don't
    see why you couldn't put the text in place of it...

    Kevin
     
    Kevin Terry, Feb 5, 2004
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.