Announcement

Collapse
No announcement yet.

Official size limits for files

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

  • Official size limits for files

    Hello all,

    I was just wondering what the official size limit for files was
    in PowerBasic. I was just trying some things out and I was able to
    create a file 5,000,000,000 bytes long with PB but this is larger
    than a LONG(4,294,967,296) so... does this mean that powerbasic
    uses QUADS for file pointer related functions? or was this just
    a error that slipped by?

    ------------------
    Cheers

  • #2
    Mark...

    Could you post a snippet of code that shows what PB commands you used to create the large file?

    Without that, it's sort of difficult for anyone to answer your question.

    Timm
    mailto:[email protected]
    Tsunami Record Manager

    Comment


    • #3
      Hello...


      Here's the code

      Code:
      #compile exe
      
      function pbmain as long
          dim var as long
      
          open"d:\mark.txt" for binary as #1
          put #1,5000000000,var
          close #1
      end function
      ------------------
      Cheers

      Comment


      • #4
        from 'pb/dll 6.0 whats new'
        * all operations which reference a position in a file (such as seek, get, lof, etc.) may now do so in the range of a 64-bit integer.
        files are no longer limited to 2 gigabytes in size.



        ------------------
        fred
        mailto:[email protected][email protected]</a>
        http://www.oxenby.se

        Fred
        mailto:[email protected][email protected]</A>
        http://www.oxenby.se

        Comment

        Working...
        X