Appending in between some file

From: Anish Kumar K. (anish_at_vitalect-india.com)
Date: 02/24/05

  • Next message: rnmscott_at_netspace.net.au: "Re: WWW::Mechanize java navigation"
    To: <beginners@perl.org>
    Date: Fri, 25 Feb 2005 01:19:12 +0530
    
    

    Hi

    I wanted to append some line in between a text file. So what I tried is with the seek command I tried moving the pointer and then do appeding, but for some reason it was not getting appended.

    I know there are ways to make this task possible. I am afraid abot the memory consumption so I haven;t used it.

    Say I have a text file

    Java
    Oracle
    Visual basic

    I wanted to insert PERL after Oracle...So now the file should be

    Java
    Oracle
    PERL
    Visual basic

    I did with array. ie first copying the file into array and then doing.

    is there any alternate way

    Anish


  • Next message: rnmscott_at_netspace.net.au: "Re: WWW::Mechanize java navigation"

    Relevant Pages

    • Re: null terminated strings
      ... Java is a strongly typed language. ... There is no such thing as a pointer. ... courses of our CS and CIS program (replacing Ada, ... ByteArrayReference, which keeps track of the original array object and the ...
      (comp.os.vms)
    • Re: Allocating an array of pointers
      ... > I need an array of pointers to pass in a native function. ... > How does one allocate an array of pointers in Java? ... > Lin DeNoyer ... There's no such thing as a pointer in Java. ...
      (comp.lang.java.help)
    • Two programs accessing the same array
      ... I'm a beginner to C++ (I've worked with Java) and I need a C program to ... get an array created by another C++ program. ... Would shared memory work to share the pointer? ...
      (comp.lang.cpp)
    • Re: char **argv & char *argv[]
      ... "pointer to pointer to char". ... >> pointer)) pointing to the first element of an array. ... so we have to start adding more context. ... type "pointer to char", rather than "array MISSING_SIZE of char". ...
      (comp.lang.c)
    • Re: why cannot assign to function call
      ... hypothetical C-like languages, ... sizeof business would still indicate that a pointer was being passed. ... talk about variables of an array type. ... the earlier version of the standard didn't have numbered ...
      (comp.lang.python)