Results 1 to 2 of 2

Thread: i have an array of bytes to save to disk as text...

  1. #1
    yaz
    Guest

    i have an array of bytes to save to disk as text...

    how can i parse at 10 chrs per line (CRLF...)?

    Open MyFile For Binary as #1
    Put #1,, MyArray 'can I add parameters there?
    Close #1

    ...? thank you

  2. #2
    jim mcnamara
    Guest
    IF I get what you want - cr/lf every 10 chars

    Code:
    tmp$ = vbCrLf
    Open MyFile For Binary as #1 
       for x = 1 to ubound(MyArray)
         Put #1,, MyArray(x)
         if x mod 10 = 0 then 
            put #1,, tmp$
         end if
       next x
    Close #1

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width