[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: OT: why loadcsvfile was: How to use passed Octave string parameters
From: |
Markus Bergholz |
Subject: |
Re: OT: why loadcsvfile was: How to use passed Octave string parameters in C code from an Oct file |
Date: |
Sat, 22 Mar 2014 21:00:52 +0100 |
Am 22.03.2014 20:55 schrieb "Andreas Weber" <address@hidden>:
>
> Am 22.03.2014 20:41, schrieb mpender:
> > I am trying to access the content of a charMatrix parameter passed from
> > Octave to an Oct file and I'm having difficulty because the code causes a
> > segmentation fault every time I run it.
>
> See my other posting for a solution.
> I think you should avoid using C functions like fgets in OCT files and
> use C++ (for example iostream) instead.
>
> > DEFUN_DLD (loadcsvfile, args, nargout, "load CSV records from a file.")
>
> Why do you want to implement a function to load csv files? Do you know
> that there is already csvread and csvwrite in octave-core?
And csv2cell (which nearly reads everything) in io package.
>
> -- Andy
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://mailman.cae.wisc.edu/listinfo/help-octave