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. Reading Text Files

Reading Text Files

Scheduled Pinned Locked Moved C#
helptutorialquestion
5 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.
  • B Offline
    B Offline
    boomer1946
    wrote on last edited by
    #1

    Hi All, I'm a newbie. I am trying to find out how to store string data read from a file into a table or another string. I keep getting the error, cannot implicitly assign a string to string?! Help!:((

    C S 2 Replies Last reply
    0
    • B boomer1946

      Hi All, I'm a newbie. I am trying to find out how to store string data read from a file into a table or another string. I keep getting the error, cannot implicitly assign a string to string?! Help!:((

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      boomer1946 wrote: I keep getting the error, cannot implicitly assign a string to string?! Perhaps if you posted your code, we could see what's going on ? There's no reason why you can't build a string from the value of another string. What do you mean by table ? How do you want the string to move into it ? Christian Graus - Microsoft MVP - C++

      B 1 Reply Last reply
      0
      • B boomer1946

        Hi All, I'm a newbie. I am trying to find out how to store string data read from a file into a table or another string. I keep getting the error, cannot implicitly assign a string to string?! Help!:((

        S Offline
        S Offline
        sean_mufc
        wrote on last edited by
        #3

        Sounds as if you have a simple problem, but cannot be sure as you haven't posyed your code. Try using the ToString() method, contained within most classes in the .NET Framework

        B 1 Reply Last reply
        0
        • C Christian Graus

          boomer1946 wrote: I keep getting the error, cannot implicitly assign a string to string?! Perhaps if you posted your code, we could see what's going on ? There's no reason why you can't build a string from the value of another string. What do you mean by table ? How do you want the string to move into it ? Christian Graus - Microsoft MVP - C++

          B Offline
          B Offline
          boomer1946
          wrote on last edited by
          #4

          Hi Christain, I solved the problem. It was my error using improper syntax. Thanks for your reply. Isaac:)

          1 Reply Last reply
          0
          • S sean_mufc

            Sounds as if you have a simple problem, but cannot be sure as you haven't posyed your code. Try using the ToString() method, contained within most classes in the .NET Framework

            B Offline
            B Offline
            boomer1946
            wrote on last edited by
            #5

            Yes, it was a simple problem solved by using the proper syntax. I guess you would call it a newbie error. I keep building on acquired knowledge. I'm getting there. Thanks for your prompt:) reply. Isaac

            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