Re: reading file



On 5 26 , 9 24 , thinktank <dibyad...@xxxxxxxxx> wrote:
I want to read a file and dump it into another file. I dont need to
read them in any specific way, for my purpose is solely to append it
to another file. Is it possible to do it, without using any loops or
array declarations?.

The file essentiallly contains a series of lines containing various
characters.


just open the file to be append as "append" and write content to it.

open("filename_to_append", position="append")

If you don't limit the realization to Fortarn, the command "copy" is
another choice.

.



Relevant Pages

  • Re: List Performance
    ... 20000 loops, best of 3: 0.554 usec per loop ... So its actually faster to append to a long list than an empty one? ... That test only demonstrates that it's faster to append to a 1 million items ...
    (comp.lang.python)
  • Re: which is more pythonic/faster append or +=[]
    ... so which is more pythonic/faster? ... ..append - easy to measure, ... 1000000 loops, best of 3: 1.31 usec per loop ...
    (comp.lang.python)
  • Re: creating Access table from directory with files
    ... Open a Windows command prompt. ... unique index that includes the three fields. ... Create an Append query that appends data from the linked table to ... The first time you run the query, it will import all the records from ...
    (microsoft.public.access.externaldata)
  • Re: [Info-ingres] Need help Appending an extra footer line after using COPY .. INTO output_file,
    ... command, as that's the only thing after the 'cat' command line. ... David G. Brooks ... (shell scripting, declarations, etc.) ... Have both queries write to seperate files then append them at the OS ...
    (comp.databases.ingres)
  • Re: [patch 1/5] Extended crashkernel command line
    ... is that if you have a bootloader like lilo or elilo which allows you to append ... a command line parameter but not to remove one, ... AFAIK it is the other way round: the lilo configuration-parameter ... parameters given by the user on the kernel command line. ...
    (Linux-Kernel)