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

  • Home
  • SEARCH
  • 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 9005747
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T01:13:38+00:00 2026-06-16T01:13:38+00:00

Friends, I have a requirement i am given a text file with fixed no.

  • 0

Friends,
I have a requirement i am given a text file with fixed no. of columns but row varies, i should read that and populate that in grid/table using Silverlight
The text file will have data something like this

0, 0, 2, 1, “url1”, description1
1, 0, 2, 2, “url2”, description2
1, 1, 4, 2, “url3”, description2

as we can see columns are fixed but row can vary

Now i want my silverlight app to read this file from system and populate in grid/table like

RowNo ColumnNo Width Height ImageURL Description
0 0 2 1 url1 Description1
1 0 2 2 url2 Description2
1 1 4 2 url3 Description3

I tried reading file using
Streamreader but its showing SecurityException error ‘SecurityExceptionHandler was unhandled by user code
File operation not permitted. Access to path ‘c:\path\file.txt’ is denied.

Hope my question is clear

Please help me out
Thanks in advance.

  • 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-16T01:13:40+00:00Added an answer on June 16, 2026 at 1:13 am

    Show an OpenFileDialog and create a StreamReader from it. Use StreamReader.ReadLine() to read it line by line. String.Split(‘,’) to get the columns or use a more sophisticated regex if the columns can contain commas within their quotes.

    That’s as far as I can help you. Haven’t used DataGrid, but the MSDN docs for it look unusually detailed and its interface very simple.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

hi friends i have an ajax()of jquery that parse the xml file , create
I have requirement to get Facebook friends list with their images. How can I
Hello friends I have tried many times but I am not successful than please
I have a friends table with columns user1 and user2 and a users table
I have a table called 'friends', this contains the columns person1 and person2 .
friends. I have a 'make'-like style file needed to be parsed. The grammar is
Friends, I am new to lucene full text search. i have developed page with
Friends i am trying to develope a desktop application it's requirement is 1.It should
We have a requirement to prevent saving additional copies of PDFs that exist out
Friends I have following code in a javascript function that is assigned to onblur

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.