Insert text in the middle of a file 
Author Message
 Insert text in the middle of a file

Quote:

>         0) levels of memory ...
>         generally,  internal of
>                 cpu
>         are
>                 register( s )
>         which are,  reasonably,
>         'random accessible'
>         ...
>         out from there ...
>         ( possibly ... )
>                 cpu cache
>         ( advanced topic ... )
>         ...
>         then
>                 primary memory
>         ( ram ... dram,  or such
>          ( lately ) ... )

[rest mercifully snipped]

YUCK !

He's applying for the "Obfuscated Answer Of The Week" price again.
The "..." seems to be his most favourite word, lately.

Stephan
(initiator of the campaign against grumpiness in c.l.c)



Tue, 21 Nov 2000 03:00:00 GMT  
 Insert text in the middle of a file

: >
: >
: >         0) levels of memory ...
: >         generally,  internal of
: >                 cpu
: >         are
: >                 register( s )
: >         which are,  reasonably,
: >         'random accessible'
: >         ...
: >         out from there ...
: >         ( possibly ... )
: >                 cpu cache
: >         ( advanced topic ... )
: >         ...
: >         then
: >                 primary memory
: >         ( ram ... dram,  or such
: >          ( lately ) ... )

: [rest mercifully snipped]

: YUCK !

: He's applying for the "Obfuscated Answer Of The Week" price again.
: The "..." seems to be his most favourite word, lately.

: Stephan
: (initiator of the campaign against grumpiness in c.l.c)

        re.

: He's applying for the "Obfuscated Answer Of The Week" price again.
: The "..." seems to be his most favourite word, lately.

        perhaps ...

        originating question may
        result from question re.
                word processor
         or
                editor
        software ...

        users of editor ( may ) have
        impression of working directly
        with file ...
        however ...
        provided file already is in being
                      ^^^^^^^^^^^^^^^^^^^
        at session start ...
        generally,  only
                image in memory
                ^^^^^^^^^^^^^^^
        of all ( or part ) of file
        is subject to editing ...
        not material on ( e.g. disc )
        device !
        familiarly,
        originating file is 'saved'
        under new id ...
        and freshly edited version
        replaces original ...

        'high level' summary following
        ( of generalized 'typical'
         edit session ( to modify file )
                        ^^^^^^^^^^^^^^
         ... )

        0) original file ( to be modified )
         is
                input
         of edit session
        ...
        1) input material is stored in
         primary memory ...
        2) input material is modified
         while in primary memory ...
        3a) originating file is saved
         ( on device ) to new id ...
        ( and )
        3b) edited material
         ( from primary memory ) is
         written ( as a file ) to device
         ( with originating file name ... )
        .

--

Ralph Silverman



Tue, 21 Nov 2000 03:00:00 GMT  
 Insert text in the middle of a file

Quote:


> : He's applying for the "Obfuscated Answer Of The Week" price again.
> : The "..." seems to be his most favourite word, lately.

>    perhaps ...

>    originating question may
>    result from question re.
>            word processor
>     or
>            editor
>    software ...

<more merciful snipping>

Mr. Silverman,

Usually your posts just annoy me.  This one was actually amusing in its
incoherence.  You seem to have a slight glimmer of understanding of
programming.  Your knowledge of English, however, seems only slightly better
than that of a well-trained chimpanzee.[1]  May I recommend that in future
you attempt to write in comprehensible, well-formed sentences?  You might
also consider losing the incredibly bizarre, ugly and confusing style you
have of indenting paragraphs on several different levels simultaneously.

--

[1] This is not intended to start a discussion of language abilities in
    animals.  Take my word for it that chimps *do not* and *cannot* speak or
    understand human languages.  If you want to discuss this, take it up
    with me in private email, not on c.l.c.



Tue, 21 Nov 2000 03:00:00 GMT  
 Insert text in the middle of a file


Quote:

> : He's applying for the "Obfuscated Answer Of The Week" price again.
> : The "..." seems to be his most favourite word, lately.

>    perhaps ...

>    originating question may
>    result from question re.
>            word processor
>     or
>            editor
>    software ...
> [much posting that appears entirely unrelated to Stephan's posting]

Yes, it's official. Ralph is officially declared to be nothing more than a
MegaHAL bot connected to Usenet, except with even worse output routines. I
applaud the creator.

--
(initiator of the campaign for grumpiness where grumpiness is due in c.l.c)

Attempting to write in a hybrid which can be compiled by either a C compiler
or a C++ compiler produces a compromise language which combines the drawbacks
of both with the advantages of neither.



Tue, 21 Nov 2000 03:00:00 GMT  
 Insert text in the middle of a file

Quote:

>    users of editor ( may ) have
>    impression of working directly
>    with file ...
>    however ...
>    provided file already is in being
>                  ^^^^^^^^^^^^^^^^^^^
>    at session start ...
>    generally,  only
>            image in memory
>            ^^^^^^^^^^^^^^^
>    of all ( or part ) of file
>    is subject to editing ...
>    not material on ( e.g. disc )
>    device !

I think most users eventually come to realize this. When a disk
cache is in use, they may not realize that their "saved" file
hasn't necessarily been written to the disk, even after closing
the edit program they were using.

- Show quoted text -

Quote:
>    'high level' summary following
>    ( of generalized 'typical'
>     edit session ( to modify file )
>                    ^^^^^^^^^^^^^^
>     ... )

>    0) original file ( to be modified )
>     is
>            input
>     of edit session
>    ...
>    1) input material is stored in
>     primary memory ...
>    2) input material is modified
>     while in primary memory ...
>    3a) originating file is saved
>     ( on device ) to new id ...
>    ( and )
>    3b) edited material
>     ( from primary memory ) is
>     written ( as a file ) to device
>     ( with originating file name ... )

That's one possiblity. Another is to create a new temporary file
and keep all changes current in that file. This way work isn't
lost if the system crashes before saving the file.

--
Craig

Manchester, NH
If you have enough spiritual power to levitate a car, what
difference does it make what religion you call yourself?
  -- "Stella"



Wed, 22 Nov 2000 03:00:00 GMT  
 
 [ 9 post ] 

 Relevant Pages 

1. Inserting into the middle of a text file

2. How do you Insert data into middle of file

3. Inserting data in the middle of a file

4. Inserting data in the middle of a file

5. inseting text into the middle of a file

6. appending a string in the middle of the text file

7. Text insert/delete in text file

8. Problem with inserting text into a simple text file

9. Inserting characters into a text file.

10. Code to insert text in file buggy

11. Inserting header onto text file - rewind()

12. inserting data to text file

 

 
Powered by phpBB® Forum Software