Advertisement

08.29.2008 at 02:49PM PDT, ID: 23690237
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.6

File system object

Asked by soorraj in Visual Basic Programming, Programming for ASP.NET, Microsoft Visual Basic.Net

Tags: ,

I have a text file and i want to Split the file into mulitple files based off the city( (all records with ' Logan ' as a city will be placed in one file, all records with ' Layton ' as a city should be in another file).  and then create new files with the city name. Must be Be comma delimited instead of semi-colon delimited like the input file. Also the the header row, from the original file, copied to it so it appears at the top of the file.
I think i copy the header to a file.
I have never worked with teh file system object before.
I am able to read the file and also changed the semi colon to a comma in the file.
This is how the text file looks like(just a junk data)

The text file looks up like this
SSN;FirstName;LastName;DOB;City;State;Zip;Balance
111222333;Suzy;Adams;05/15/1977;Salt Lake City;UT;84054;2000.00
111333444;Brady;Broom;03/16/1978;Provo;UT;84054;4300.00
111444555;Andrew;Packard;02/06/1980;Salt Lake City;UT;84034;2340.00
111555666;Ralph;Vunderly;01/15/1983;Provo;UT;84023;2000.00
111666777;Jay;Hack;12/12/1956;Layton;UT;84043;20.00
111777888;Steven;Nielsen;10/31/1976;Logan;UT;84065;2000.00
111888999;Debbie;DuJanivic;05/05/1977;Salt Lake City;UT;84032;2450.00

Thi si my code looks like

Imports System
Imports System.IO
Imports System.Collections
Partial Class _Default
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        Dim objReader As New StreamReader("c:\test.txt")
        Dim sLine As String = ""
        Dim arrText As New ArrayList()

        Do
            sLine = objReader.ReadLine()
            If Not sLine Is Nothing Then
                sLine = Replace(sLine, ";", ",")
                arrText.Add(sLine)

            End If
        Loop Until sLine Is Nothing
        objReader.Close()

        For Each sLine In arrText
            ' Console.WriteLine(sLine)
           ' MsgBox(sLine)
            'Response.Write(sLine)
            Dim furst As String = arrText(0)
            Response.Write(furst)


        Next
        'Response.Write(sLine)
        Response.Write(furst)
        Console.ReadLine()
    End Sub

End Class Start Free Trial
[+][-]08.29.2008 at 04:31PM PDT, ID: 22349881

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.30.2008 at 09:42AM PDT, ID: 22352449

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.30.2008 at 03:20PM PDT, ID: 22353383

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.31.2008 at 06:53AM PDT, ID: 22355003

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.31.2008 at 03:09PM PDT, ID: 22356566

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.31.2008 at 03:23PM PDT, ID: 22356611

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Visual Basic Programming, Programming for ASP.NET, Microsoft Visual Basic.Net
Tags: VBA, ASP.NET, ie6
Sign Up Now!
Solution Provided By: svdl
Participating Experts: 2
Solution Grade: A
 
 
[+][-]09.01.2008 at 01:48AM PDT, ID: 22358399

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.01.2008 at 06:11AM PDT, ID: 22359849

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.01.2008 at 06:16AM PDT, ID: 22359884

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.01.2008 at 11:57AM PDT, ID: 22362185

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.01.2008 at 01:54PM PDT, ID: 22362738

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.01.2008 at 04:21PM PDT, ID: 22363302

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.02.2008 at 04:45AM PDT, ID: 22366283

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.02.2008 at 11:11AM PDT, ID: 22369847

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.02.2008 at 09:35PM PDT, ID: 22374145

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.03.2008 at 01:55PM PDT, ID: 22381885

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.03.2008 at 02:13PM PDT, ID: 22382042

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-42 / EE_QW_2_20070628