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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:23:58+00:00 2026-06-15T23:23:58+00:00

am using vb.net .am having a file. that file contain some values . i

  • 0

am using vb.net .am having a file. that file contain some values . i want to read that file using vb.net.

file name cdr_StandAloneCluster_03_201208090909_33121.file

data type        file

it contain the data look like this


cdrRecordType,"globalCallID_callManagerId","globalCallID_callId","origLegCallIdentifier","dateTimeOrigination","origNodeId","origSpan","origIpAddr","callingPartyNumber","callingPartyUnicodeLoginUserID","origCause_location","origCause_value","origPrecedenceLevel","origMediaTransportAddress_IP","origMediaTransportAddress_Port","origMediaCap_payloadCapability","origMediaCap_maxFramesPerPacket","origMediaCap_g723BitRate","origVideoCap_Codec","origVideoCap
  • 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-15T23:23:59+00:00Added an answer on June 15, 2026 at 11:23 pm

    The key to parsing your dta is to use the “SPLIT” method

    Here is a sample code i knocked up.
    I cannot be sure its 110% but it ought to bring you a lot closer to resolving your issue.

        Sub SomePrcoedure(strFilename As String)
    
    Dim arrRawData As Generic.List(Of String) = Nothing
    Dim arrLineItems() As String = Nothing
    Dim objStreamReader As StreamReader = Nothing
    Dim datTextLine As String = Nothing
    
        '-> Validate Filename
        If Trim(strFilename) <> "" Then
            If FileIO.FileSystem.FileExists(strFilename) Then
                '-> Read the WHOLE file in 
                arrRawData = New Generic.List(Of String)
                objStreamReader = New StreamReader(Trim(strFilename))
                Do
                    datTextLine = objStreamReader.ReadLine()
                    If Trim(datTextLine) <> "" Then
                        arrRawData.Add(Trim(datTextLine))
                    End If
                Loop Until objStreamReader.EndOfStream()
                objStreamReader.Close()
                '-> Split EACH line data into the array arrLineItems
                For intCounta = 0 To arrRawData.Count - 1
                    arrLineItems = Split(arrRawData(intCounta), ",")
                    'your line is now split into the array arrLineItems() 
                    'process results here or store results for later or your code here....
                Next
            Else
                'file not found
            End If
        Else
            'file name missing
        End If
        arrRawData = Nothing
        arrLineItems = Nothing
        objStreamReader = Nothing
        datTextLine = Nothing
    
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using ASP.NET MVC + NHibernate + Fluent NHibernate and having a problem with
I am having an issue with a website developed using ASP.Net/C# sometimes taking all
I am using ASP.NET Web Forms/C# . I am having this function in my
I am currently using ASP.NET MVC 2.0 RC2, having recently moved from version 1.0.
I'm having issues deserializing certain Guid properties of ORM-generated entities using protobuf-net. Here's a
I am having a weird issue in MVC. I am using ASP.Net MVC, I
I'm having a really frustrating error trying to secure an ASP.NET application using the
I'm having trouble getting Spring.Net to log, using Log4Net. I'm particulary interested in seeing
I am using the kalitte toolkit from http://dynamicdashboards.net/ and we are having a request
Hey guys (and gals) I'm having a problem using Assembly GetExportedTypes() in .NET 4.0.

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.