Code covered by the BSD License  

Highlights from
INIFILE

5.0

5.0 | 12 ratings Rate this file 58 Downloads (last 30 days) File Size: 9.3 KB File ID: #2976
image thumbnail

INIFILE

by

 

29 Jan 2003 (Updated )

INI file reading and writing.

| Watch this File

File Information
Description

Utility to create/read/write entries into/from ascii ini file (strings, scalars and numeric matrices). Multiple keys can be read/written AT ONCE.
See inifile.m for additional information.

MATLAB release MATLAB 6.5.1 (R13SP1)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (14)
20 Jan 2014 Tyler Cumby

I noticed a minor bug in the 'readall' option where in the keys return value, the last subsection is repeated for subsequent empty subsection names. My fix was to add
if ~isempty(subsecStr)
subsecStr = '';
end

in readallkeys(filename) under the if statement 'if status == 1' where new section names are incorporated.

16 Jan 2014 Tyler Cumby  
12 Feb 2013 Danielle

totally awesome!

04 Jun 2012 Daniel Hornung

One suggestion: Add an option to preserve the case of keys. That way it would be easy to create a broader range of Matlab structures dynamically.

17 Apr 2012 November India Charlie Oscar

Really great. Perfect to make and read easily config files.

10 Oct 2010 Danila

Useful code

14 Feb 2010 Mohammed El-Said

Great work,
it is really useful,
Thanks for your professional efforts...

23 Nov 2009 Danila

Very usefull code.

10 Jun 2009 Amjad Elshenawy  
29 Nov 2007 Andrei Ninu  
30 Dec 2004 Jonathan Archer

The code could use a little tidying up. It could be more readable if limited to 75 columns.

06 Feb 2004 Prakash Hanagud

Thanks

15 Aug 2003 Benton Lau

Very useful. No problem in Matlab v6.5.

25 Jun 2003 Elmer Tom

Useful... Using it in MATLAB 5.2 with no problems so far...

Updates
02 Apr 2003

Update; (m-file instead of p-file)

02 Apr 2003

Update; free code (M-file)

07 Jul 2003

Update - a major refinement and 'deletekey' option added.

07 Jul 2003

Update;

13 Oct 2003

Screenshot added

03 Nov 2003

Screenshot added

03 Nov 2003

Update

21 Nov 2003

Update; no additional functions needed anymore

01 Dec 2003

Complete rewrite - a new concept - multiple keys can now be read, written, or deleted ALL AT ONCE which makes this function much faster.

02 Dec 2003

The proper file uploaded

18 Dec 2003

?

08 Mar 2004

minor update and bug fixes

30 Mar 2004

new version - conversion to/from integer and double is now supported

21 Apr 2004

Numeric matrices can be read/written; a bug related to read operation and default value has been removed

05 May 2004

Comment lines are now detected

26 Jul 2004

Minor changes

26 Jul 2004

Bug removed

01 Oct 2004

Update

06 Dec 2005

Update ('readall' option added)

07 Dec 2005

update

20 May 2009

license update

20 Jun 2009

License update

Contact us