How to make a ini-file
-
- Posts: 4
- Joined: 01 Aug 2011, 06:48
How to make a ini-file
Hello,
I'm new on the forum and a have a question.
My question: "How can I make a ini-file?" I now how to make a txt-file.
If you have a more information, you can post it.
Meanwhile thanks for your time,
Walter.
(Sorry, I'm so bad in English.)
I'm new on the forum and a have a question.
My question: "How can I make a ini-file?" I now how to make a txt-file.
If you have a more information, you can post it.
Meanwhile thanks for your time,
Walter.
(Sorry, I'm so bad in English.)
-
- Posts: 224
- Joined: 30 Oct 2010, 04:10
- Location: 127.0.0.1
- Contact:
Re: How to make a ini-file
http://en.wikipedia.org/wiki/INI_file
The basic syntax is this:
The basic syntax is this:
Code: Select all
[Section name]
Name=Value
OtherName=OtherValue ;this is a comment. it is ignored
Commit to Lego Mindstorms StackExchange Q&A http://area51.stackexchange.com/proposals/4105
Minboards IRC Channel #mindboards on Freenode
My blog: http://timpattinson.wordpress.com/
Minboards IRC Channel #mindboards on Freenode
My blog: http://timpattinson.wordpress.com/
-
- Posts: 4
- Joined: 01 Aug 2011, 06:48
Re: How to make a ini-file
Sorry, I mean: How to safe data (from the nxt) in an ini-file. I know how this can with a txt-file.
-
- Posts: 224
- Joined: 30 Oct 2010, 04:10
- Location: 127.0.0.1
- Contact:
Re: How to make a ini-file
Well just use the normal functions to write to a txt file, but use the extension .ini
I may edit this later with better advice
I may edit this later with better advice
Commit to Lego Mindstorms StackExchange Q&A http://area51.stackexchange.com/proposals/4105
Minboards IRC Channel #mindboards on Freenode
My blog: http://timpattinson.wordpress.com/
Minboards IRC Channel #mindboards on Freenode
My blog: http://timpattinson.wordpress.com/
-
- Posts: 4
- Joined: 01 Aug 2011, 06:48
Re: How to make a ini-file
Oh, I know what you mean.timpattinson wrote:Well just use the normal functions to write to a txt file, but use the extension .ini
I may edit this later with better advice
Thank you for your time and help.
[edit]
I have tryed your advice, but it don't work.
I have a ini-file, with the name objects. I have downloaded the file.
Now Read the code the file objects, but the code don't regonized the file.
the conclusion: Your advice don't work. Sorry
Re: How to make a ini-file
http://en.wikipedia.org/wiki/INI_file
'Ini' files tend to be specific to the application. What application are you using that requires this file to be marked 'ini'?
'Ini' files tend to be specific to the application. What application are you using that requires this file to be marked 'ini'?
A sophistical rhetorician, inebriated with the exuberance of his own verbosity, and gifted with an egotistical imagination that can at all times command an interminable and inconsistent series of arguments to malign an opponent and to glorify himself.
Re: How to make a ini-file
His advice is correct. Ini files are text files. With a certain rule how this text should look. We can't help you if you don't post the files, the code, and exactly what you want to do!wkohlenberg wrote: [edit]
I have tryed your advice, but it don't work.
I have a ini-file, with the name objects. I have downloaded the file.
Now Read the code the file objects, but the code don't regonized the file.
the conclusion: Your advice don't work. Sorry
RWTH - Mindstorms NXT Toolbox for MATLAB
state of the art in nxt remote control programming
http://www.mindstorms.rwth-aachen.de
MotorControl now also in Python, .net, and Mathematica
state of the art in nxt remote control programming
http://www.mindstorms.rwth-aachen.de
MotorControl now also in Python, .net, and Mathematica
Re: How to make a ini-file
Are you programming in NXT-G or some other programming language? If you are using a text-based programming language like NXC then I would encourage you to post your source code so that we can help you correct the problems you are having. Send it to a compressed folder (aka .zip file) and attach it to your next post. Can I ask why you are wanting your NXT to create an ini file for you?wkohlenberg wrote:Oh, I know what you mean.timpattinson wrote:Well just use the normal functions to write to a txt file, but use the extension .ini
I may edit this later with better advice
Thank you for your time and help.
[edit]
I have tryed your advice, but it don't work.
I have a ini-file, with the name objects. I have downloaded the file.
Now Read the code the file objects, but the code don't regonized the file.
the conclusion: Your advice don't work. Sorry
John Hansen
Multi-platform LEGO MINDSTORMS programming
http://bricxcc.sourceforge.net/
http://bricxcc.sourceforge.net/
-
- Posts: 4
- Joined: 01 Aug 2011, 06:48
Re: How to make a ini-file
I'm programming in NXT-G.
I have a ini-file with the name objects. I download the ini-file to the NXT-brick. The NXT-G code read the file en write the first sentence of the file on the display, but there isn't.
It works when I make the ini-file to a txt-file.
I have a ini-file with the name objects. I download the ini-file to the NXT-brick. The NXT-G code read the file en write the first sentence of the file on the display, but there isn't.
It works when I make the ini-file to a txt-file.
-
- Posts: 224
- Joined: 30 Oct 2010, 04:10
- Location: 127.0.0.1
- Contact:
Re: How to make a ini-file
wink wink nudge nudgelinusa wrote: We can't help you if you don't post the files, the code, and exactly what you want to do!
Commit to Lego Mindstorms StackExchange Q&A http://area51.stackexchange.com/proposals/4105
Minboards IRC Channel #mindboards on Freenode
My blog: http://timpattinson.wordpress.com/
Minboards IRC Channel #mindboards on Freenode
My blog: http://timpattinson.wordpress.com/
Who is online
Users browsing this forum: Semrush [Bot] and 2 guests