Announcement

Collapse

Maintenance

The forum could be offline for 30-60 minutes in the very near future for maintenance (said 3pm Pacific). I was behind on getting this notice. I do apologize.
See more
See less

PRINT # line length

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • PRINT # line length

    When using PRINT #f, s$ to print a string to a sequential file
    it appears that the string is being split after 4096 characters
    and then continued onto a new line. The documentation does not
    mention a width restriction. Is this for real? And if so, can I
    stop it?

  • #2
    Oops, false alarm - 'twas the editor used to view the file.
    Sorry ...

    ------------------

    Comment


    • #3
      This is more likely a function of your text editor. I created a file that was 12002 bytes long with the following code:
      Code:
      #compile exe
      #dim all
      function pbmain
         Dim i as Long
         Dim x as string
         x = String$(12000, "A")
         i = FreeFile
         Open "test.txt" for output as #i
         Print #i, x
         Close #i
      end function
      My text editor (text pad v3) prompted me when opening the resulting file saying that the 12000 byte line was too long and split it into 4 lines.

      Best Regards,
      Don

      ------------------
      Don Dickinson
      www.greatwebdivide.com

      Comment

      Working...
      X