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 3694348
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T04:29:09+00:00 2026-05-19T04:29:09+00:00

I am stuck in allocating data in array. for example i have 100 words

  • 0

I am stuck in allocating data in array.
for example i have 100 words in paragraph now i want to make array which contain 10 words in each array slot but not break words mean “Hello” in one slot would be “hel” and in second slot rest of word “lo”.

Can anyone know how to implement it?

my paragraph look like

\r\n hi how are you\r\n whats going on
\r\n \r\n  Google Translate API for .NET 0.4 alpha
\r\n ¶\r\n\r\nDescription:\r\n\r\nProvides a simple, unofficial, .NET Framework API for using Google Ajax Language API service.\r\n\r\nFeature:\r\n
\r\n * tyle5\”>Support all functions of Google Ajax Language API. \r\n
\r\n * CLS compatible. It can be used by any .NET languages (VB.NET, C++/CLI etc.) \r\n\r\nVersions: Google Search API for .NET comes in different versions for the various .NET frameworks. * .NET Framework 3.5 Client Profile.
\r\n * .NET Framework 2.0
\r\n * .NET Compact Framework 3.5
\r\n * Silverlight 3.0 \r\n\r\n
\r\n Example:\r\n\r\n string text = \”我喜欢跑步。\”;\r\n
\r\n TranslateClient client = new TranslateClient(/* Enter the URL of your site here */);\r\n string translated = client.Translate(text, Language.ChineseSimplified, Language.English);\r\n Console.WriteLine(translated);\r\n // I like running. \r\n \r\n
\r\n
\r\n \r\n “

  • 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-05-19T04:29:10+00:00Added an answer on May 19, 2026 at 4:29 am

    If I understood you correctly, you need something like this. If not, please let me know.

    char separator = ' ';
    int length = 10;
    var splitted = paragraph.Split(separator);
    List<string[]> arrays = new List<string[]>();
    for (int i = 0; i < splitted.Length / length + 1; i++)
    {
        arrays.Add(splitted.Where((x, y) => y >= i * length && y < (i + 1) * length)
            .Select( word => word + separator).ToArray());
    }
    
    foreach (var arr in arrays)
    {
        foreach (var cell in arr)
        {
            Console.Write(cell);
        }
        Console.WriteLine();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

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.