Click here to Skip to main content
15,920,896 members
Home / Discussions / C#
   

C#

 
GeneralRe: Reading A Specific value From Txt File Pin
wwwxyz14-Feb-09 9:28
wwwxyz14-Feb-09 9:28 
GeneralRe: Reading A Specific value From Txt File Pin
Deresen14-Feb-09 11:01
Deresen14-Feb-09 11:01 
AnswerRe: Reading A Specific value From Txt File Pin
wwwxyz14-Feb-09 11:18
wwwxyz14-Feb-09 11:18 
GeneralRe: Reading A Specific value From Txt File Pin
Deresen14-Feb-09 11:30
Deresen14-Feb-09 11:30 
GeneralRe: Reading A Specific value From Txt File Pin
wwwxyz14-Feb-09 11:53
wwwxyz14-Feb-09 11:53 
Questionimagemap with highlight Pin
Axell14-Feb-09 8:19
Axell14-Feb-09 8:19 
AnswerRe: imagemap with highlight Pin
Nuri Ismail14-Feb-09 8:27
Nuri Ismail14-Feb-09 8:27 
GeneralRe: imagemap with highlight Pin
DaveyM6914-Feb-09 8:29
professionalDaveyM6914-Feb-09 8:29 
GeneralRe: imagemap with highlight Pin
Axell14-Feb-09 8:34
Axell14-Feb-09 8:34 
GeneralRe: imagemap with highlight Pin
DaveyM6914-Feb-09 11:29
professionalDaveyM6914-Feb-09 11:29 
AnswerRe: imagemap with highlight Pin
DaveyM6914-Feb-09 8:28
professionalDaveyM6914-Feb-09 8:28 
Questionarray table or string table Pin
abbd14-Feb-09 7:38
abbd14-Feb-09 7:38 
AnswerRe: array table or string table Pin
Nuri Ismail14-Feb-09 8:04
Nuri Ismail14-Feb-09 8:04 
GeneralRe: array table or string table Pin
abbd14-Feb-09 8:39
abbd14-Feb-09 8:39 
GeneralRe: array table or string table Pin
hendrik14-Feb-09 8:53
hendrik14-Feb-09 8:53 
GeneralRe: array table or string table Pin
Nuri Ismail14-Feb-09 8:55
Nuri Ismail14-Feb-09 8:55 
GeneralRe: array table or string table Pin
abbd14-Feb-09 8:59
abbd14-Feb-09 8:59 
AnswerRe: array table or string table Pin
Nuri Ismail14-Feb-09 9:02
Nuri Ismail14-Feb-09 9:02 
GeneralRe: array table or string table Pin
abbd14-Feb-09 9:14
abbd14-Feb-09 9:14 
AnswerRe: array table or string table Pin
Nuri Ismail14-Feb-09 9:21
Nuri Ismail14-Feb-09 9:21 
GeneralRe: array table or string table Pin
abbd14-Feb-09 9:23
abbd14-Feb-09 9:23 
GeneralRe: array table or string table Pin
Guffa14-Feb-09 9:24
Guffa14-Feb-09 9:24 
GeneralRe: array table or string table Pin
Nuri Ismail14-Feb-09 9:24
Nuri Ismail14-Feb-09 9:24 
GeneralRe: array table or string table Pin
abbd14-Feb-09 9:42
abbd14-Feb-09 9:42 
GeneralRe: array table or string table Pin
Deresen14-Feb-09 11:18
Deresen14-Feb-09 11:18 
If you are a programmer, you should know the difference between String and Object!
And if you don't know the difference, first get lessons or read a book.

Personal I think that you should read a book, because you ask all beginner questions.


First of all, you are probably still using an ArrayList, my suggestion: use List<type>.
Secondly, the difference between a String and Object.
Every String in C# is an Object, but not every Object is a String. Just as that all dogs are animals, but not every animal is a dog. Every type in C# is an Object, so int, String, Array, ArrayList, Double, Byte, those are Objects.
So which should you use, a String or an Object? Well you use a String if you know that the input value is a single or more characters (which will make for instance a sentence or word). If you don't know what the type will be (maybe it is a number, maybe a sentence), you use the Object type.
So you should use a String. Why? You know that the value from a textfile are words or at least characters, so you should store those values in a String.

Good luck!

And you should maybe try work on your English skill, but that's just a side note.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.