fopen: pre-pending text



Coding in C, I can append text to a file
e.g. as with

fopen ("txtfile", a+)

To write at the begin of file, I can use

fopen ("txtfile", r+)

but that will overwrite existing text.

So how do I insert (pre-prend) text with fopen?

Thanks!

Joe

.



Relevant Pages

  • C# vs. VB .NET
    ... I have heard from some that, due to the CLR, there is ... really no difference between coding in C# or in VB.NET. ... Joe ... Prev by Date: ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Error with Append Query
    ... Hi Joe ... error code you want to ignore, and do a Resume Next (or whatever else you ... >> Microsoft Office Access can't append all the records in the append query. ... failure, and it didn't add 1 recoordto the table due to key violations, ...
    (microsoft.public.access.formscoding)
  • Re: Normalization
    ... The former, I believe, would be a higher normal form, ... > however, the latter may be more intuitive when developing, coding, etc. ... Prev by Date: ...
    (microsoft.public.access.tablesdbdesign)
  • "Page cannot be displayed"
    ... and removing each one in turn, but I still get this error on this one page. ... I think there must be something wrong with my coding, ... I would be most grateful for any suggestions. ... Prev by Date: ...
    (microsoft.public.frontpage.programming)
  • dont print anything after /$c in MARC record
    ... 245 00$aJoe is a creep /$cby Dirty Harry ... If I was asked to print a report of titles for an instructor, ... I eliminate the coding from the report, ... Joe is a creep ...
    (comp.lang.perl.misc)