Announcement

Collapse
No announcement yet.

Official size limits for files

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

  • Fred Oxenby
    replied
    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

    Leave a comment:


  • Guest's Avatar
    Guest replied
    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

    Leave a comment:


  • Timm Motl
    replied
    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

    Leave a comment:


  • Guest's Avatar
    Guest started a topic Official size limits for files

    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
Working...
X