-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Err...you want to know what is in a file before you open it? This could be done if you keep some external database documenting changes made to the file. But unless I misunderstand what you're saying, then it's not possible to know the contents of a file without opening and reading that file.
W. eWatson wrote: > I have an ordinary text file with a CR at the end of a line, and two > numbers in each line. Is there some way to determine the number of lines > (records) in the file before I begin reading it? > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkiwSZ4ACgkQLMI5fndAv9hXugCeJs5XBkLLne6ljqQggB/MoAVs SNIAoJxsU04cwcZMrH9QjElAbMD34RdK =RlmP -----END PGP SIGNATURE----- -- http://mail.python.org/mailman/listinfo/python-list