Announcement

Collapse
No announcement yet.

Sequential files - file size?

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

  • Sequential files - file size?

    @all,

    I've written a little program reading a sequential ASCII/Text file, making some manipulations and writing a second file.

    The records will be read using the "while/wend" command and all runs ok if the file size isn't bigger than 2 GB.

    Independently from the problem above, which perhaps have other reasons:
    Are there generally any file size limitations for PB reading sequential files? (OS: Win XP sp3)

    bye,
    Volker
    www.zentrader.de (Trading system development and simulation tools)

  • #2
    The 2GB would be a limit to the record size, not file size. PB/WIN can handle file addressing using 64-bit integers so the total file size is probably limited by NTFS or disk size (whichever is smaller).
    kgpsoftware.com | Slam DBMS | PrpT Control | Other Downloads | Contact Me

    Comment


    • #3
      @Kev,

      thank you for your quick answer!

      I've thought that there's no PB limitation, so I've try to analyze the problem a little bit deeper...

      bye,
      Volker
      www.zentrader.de (Trading system development and simulation tools)

      Comment


      • #4
        I think he just told you, you'll need Quad variables
        hellobasic

        Comment


        • #5
          ...or you could extract code to make a compileable example showing what is going wrong.

          Comment


          • #6
            Originally posted by Chris Holbrook View Post
            ...or you could extract code to make a compileable example showing what is going wrong.
            Michael.. is that you?
            hellobasic

            Comment


            • #7
              Only in the sense of stating the bloomin' obvious...

              Comment


              • #8
                Are you using an older operating system? They were limited to 2G file size.

                Bob Zale
                PowerBASIC Inc.

                Comment


                • #9
                  Compiler model/version not given. Operating system not specified. Code not shown.

                  Problem not solved.

                  Coincidence?
                  Michael Mattias
                  Tal Systems (retired)
                  Port Washington WI USA
                  [email protected]
                  http://www.talsystems.com

                  Comment


                  • #10
                    The operating system has been specified. I can read "(OS: Win XP sp3)".
                    Forum: http://www.jose.it-berater.org/smfforum/index.php

                    Comment


                    • #11
                      Some computers that came with XP preinstalled, particularly laptops, were still using FAT32 disk systems with the 2GB limit. Also if the computer XP OS is an upgrade from 98, ME etc then it will not have automatically upgraded the disk system to NTFS. You can't depend on knowing the OS you need to check the disk properties.

                      Comment


                      • #12
                        I read in this message that creating a file >2GB to process is not the problem.

                        I read this as the code (not shown) will not get all lines of said input file. Or maybe it won't write all lines of the output.
                        Michael Mattias
                        Tal Systems (retired)
                        Port Washington WI USA
                        [email protected]
                        http://www.talsystems.com

                        Comment


                        • #13
                          First, many thanks for your input.

                          Meanwhile I've build my own test file (400,000,000 records in a 10.4 GB file) on a NTFS partition of Win XP sp3 (Home Edition, german) and the program (build with PB v9.0) works without error.

                          Because the original problem doesn't occur on my computer, but on a PC of a remote user I'm still waiting for additional information concerning his file and his computer environment. The FAT limitations may be the key...

                          (...a few hours later: ok, now it is confirmed - it was a FAT problem!)

                          bye,
                          Volker
                          Last edited by Volker Butzlaff; 9 Feb 2009, 04:45 PM.
                          www.zentrader.de (Trading system development and simulation tools)

                          Comment

                          Working...
                          X