Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi!!

I have a grid in my project that must have some 'properties' saved and loaded..

I created a sample txt file with some things that I have to save about that grid.

I was wondering if it is possible to read the file doing something like this:

 

Dim c as column

for each c in columns

'Do something

next

 

Dim g as group

for each g in groups

'Do something

next

 

I have the mentalis class to read and write to some file, but with that it's not possible to have quotes and 'subquotes'.

 

Can someone help, please?

settings.txt

  • Moderators
Posted
The best thing to do in your case is use an XML file instead of a txt/ini file. When you load the XML you can then iterate the collection similiar to your current code.
Visit...Bassic Software
Posted

I searched a lot and I found a way to create a file like the attached.. (This one was made by me :rolleyes: )

Now I need to know how can I read from each section, in order to get a collection with columns information, another with groups information, etc.

settings.zip

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...