Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.basic.misc > #233

Re: Opening a .DAT file

From Todd Vargo <tlvargo@sbcglobal.netz>
Newsgroups comp.lang.basic.misc
Subject Re: Opening a .DAT file
Date 2012-03-13 17:18 -0500
Organization albasani.net
Message-ID <jjodhr$i1a$1@news.albasani.net> (permalink)
References <46O6r.4324$v14.3046@viwinnwfe02.internal.bigpond.com> <jjidpl$m5v$1@news.albasani.net> <Wnq7r.4518$%E2.3170@viwinnwfe01.internal.bigpond.com> <jjlorh$rla$1@news.albasani.net> <pDM7r.4558$%E2.1793@viwinnwfe01.internal.bigpond.com>

Show all headers | View raw


On 3/13/2012 1:47 PM, DonH wrote:

>     Yes, we all have aims, and one of mine is to do a frequency count of
> letters in a cryptogram, now successfully accomplished using SELECT CASE,
> which is neater than nested IF loops.
>     My dabbling with TYPE and file storage is likewise to copy data, eg. text
> of cryptograms, from Internet source, to insert into Basic programs, for
> analysis.
>     Incidentally, can you *sort* a Basic storage file - Sequential, or Random
> Access - by one of its components, so all others stay in alignment?  (as you
> can in a WORKS spreadsheet.)  Or must the whole file be downloaded into a
> Basic program, and there manipulated?

If I understand what you are asking here, yes. If the size of the file 
is too large to read the entire contents into memory, sure you can open 
it using binary or random access mode to compare records and write them 
back in a sorted order. It will be much slower than if the work was done 
entirely in memory, but yes it can be done.

-- 
Todd Vargo
(Post questions to group only. Remove "z" to email personal messages)

Back to comp.lang.basic.misc | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Opening a .DAT file "DonH" <donlhumphries@bigpond.com> - 2012-03-11 06:39 +1100
  Re: Opening a .DAT file "Auric__" <not.my.real@email.address> - 2012-03-11 01:04 +0000
    Re: Opening a .DAT file "DonH" <donlhumphries@bigpond.com> - 2012-03-13 04:14 +1100
      Re: Opening a .DAT file H-Man <Spam@bites.fs> - 2012-03-12 12:25 -0600
      Re: Opening a .DAT file ralph <nt_consulting64@yahoo.net> - 2012-03-12 13:28 -0500
  Re: Opening a .DAT file Todd Vargo <tlvargo@sbcglobal.netz> - 2012-03-11 09:45 -0500
    Re: Opening a .DAT file "DonH" <donlhumphries@bigpond.com> - 2012-03-13 04:29 +1100
      Re: Opening a .DAT file Todd Vargo <tlvargo@sbcglobal.netz> - 2012-03-12 16:12 -0500
        Re: Opening a .DAT file "DonH" <donlhumphries@bigpond.com> - 2012-03-14 05:47 +1100
          Re: Opening a .DAT file Todd Vargo <tlvargo@sbcglobal.netz> - 2012-03-13 17:18 -0500
            Re: Opening a .DAT file H-Man <Spam@bites.fs> - 2012-03-13 15:38 -0600
          Re: Opening a .DAT file "R.Wieser" <address@not.available> - 2012-03-15 22:48 +0100

csiph-web