help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Saving data in append mode


From: Martijn
Subject: Re: Saving data in append mode
Date: Thu, 14 Jul 2011 23:16:13 +0200

Hi Per-Olof,
Appending works for plain text files if you use the c-style i/o:
f=fopen('myfile.txt', 'a')
fprintf(f, 'pi: %.5f\n', pi)
fclose(f)
This appends the line 'pi: 3.14159' to an existing file. C-style I/O is
powerful, but requires some effort.

Martijn


On Tue, 2011-07-12 at 21:35 +0200, Per-Olof Sturesson wrote:
> Hello,
>  
> Thanks for the response.
>  
> Are there any plans to implement append mode in 'save' to
> octave/matlab?
>  
> Br
>  
> POS
> 
> 2011/7/12 Ben Abbott <address@hidden>
>         
>         On Jul 12, 2011, at 1:51 PM, Per-Olof Sturesson wrote:
>         
>         > Hello,
>         >
>         > I would like to save data in octave or matlab file format in
>         an existing file and append more data.
>         >
>         > Is this possible?
>         >
>         > Br
>         >
>         > POS
>         
>         
>         Appending is supported by the recent 3.4.x release, for ps and
>         pdf output.
>         
>         I don't think it is supported by earlier versions of Octave.
>         
>         Ben
> 
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://mailman.cae.wisc.edu/listinfo/help-octave




reply via email to

[Prev in Thread] Current Thread [Next in Thread]