comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » append to the first line of a text file....
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
append to the first line of a text file.... [message #74437] Fri, 14 January 2011 09:30
George Millward is currently offline  George Millward
Messages: 29
Registered: February 2000
Junior Member
Hi there,

I am wanting to 'append' an ascii file - but instead of appending the
new data to the bottom
I want the new data to be at the top of the file.

Does anyone have any suggestions ?

Example: I have a file that currently consists of:

ABCDEFG

My new data is : HIJKLMN

using OPENU /APPEND and PRINTF I can very easily append the file to
get this:

ABCDEFG
HIJKLMN

.... but I want the appending to be at the top - ie, I want to end up
with this:

HIJKLMN
ABCDEFG

Any ideas ?

George.
[Message index]
 
Read Message
Previous Topic: Re: IDL 8.0 plot lat/lon data into map
Next Topic: instructor solution manual for Analytical Chemistry, Higson

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 12:56:12 PDT 2025

Total time taken to generate the page: 0.53834 seconds