Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8789335
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:22:42+00:00 2026-06-13T22:22:42+00:00

I need to store string data in memory in the form of a table,

  • 0

I need to store string data in memory in the form of a table,
columns are fixed, but rows will be added to the end.

I guess I can use two dimensional string array string[][] if I had known the rows in advance, but that’s not the case.

I have currently created a custom class with 3 fields and stored them in a list, but I realise it not very graceful solution, the data will look like this

artist-name1, album-name1, filename1
artist-name2, album-name2,
filename2
artist-name3, album-name3, filename3
And so on..

Which data structure is best for this ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T22:22:44+00:00Added an answer on June 13, 2026 at 10:22 pm

    You could use List<string[]> or List<List<string>>. First case will allow you to add as many rows as you want and the columns will be fixed. The second solution is somewhat more flexible and will let you add as many columns as you want.

    List<string[]> list = new List<string[]>();
    string[] row = new string[3];
    row[0] = "artist-name1";
    row[1] = "album-name1";
    row[2] = "filename1";
    list.Add(row);
    

    Or

    List<List<string>> list = new List<List<string>>();
    List<string> row = new List<string>();
    row.Add("artist-name1");
    row.Add("album-name1");
    row.Add("filename1");
    list.Add(row);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to store data in memory where I map one or more key
I need to store my data into memory. My type data of my data
I need to collect some data and temporarily store it in memory and then
I am a newbie in windows forms and I need to store a string
I need to store maybe 250 million records of String -> String mappings and
I need to convert a string to datetime . I need to store datetime
I have a set of string that I need to store in a set,
I need to read webpage and store its content in string for further processing.
I'm using two string vectors to store two text files. I need to compare
For my project, I need to store info about protocols (the data sent (most

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.