Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. using stringbuilder

using stringbuilder

Scheduled Pinned Locked Moved C#
databasedata-structures
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DownBySpj
    wrote on last edited by
    #1

    Hi, I want to know about the stringbuilder and its use. Can it be used to read a text file line by line for further processing. Right now i m using array to read the whole contents of a text file and then processing it line by line using the array index. Is it possible by using stringbuilder. It is required to process each line in the text file seperately. Thanx in advnace

    E P 2 Replies Last reply
    0
    • D DownBySpj

      Hi, I want to know about the stringbuilder and its use. Can it be used to read a text file line by line for further processing. Right now i m using array to read the whole contents of a text file and then processing it line by line using the array index. Is it possible by using stringbuilder. It is required to process each line in the text file seperately. Thanx in advnace

      E Offline
      E Offline
      ednrgc
      wrote on last edited by
      #2

      stringbuilder can be used where string concatenation occurs.

      1 Reply Last reply
      0
      • D DownBySpj

        Hi, I want to know about the stringbuilder and its use. Can it be used to read a text file line by line for further processing. Right now i m using array to read the whole contents of a text file and then processing it line by line using the array index. Is it possible by using stringbuilder. It is required to process each line in the text file seperately. Thanx in advnace

        P Offline
        P Offline
        Pete OHanlon
        wrote on last edited by
        #3

        The StringBuilder class has nothing to do with reading a file in. It is there strictly to allow a faster, more efficient method of concatenating strings.

        Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world." Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that." Deja View - the feeling that you've seen this post before.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups