Click here to Skip to main content
15,895,656 members
Home / Discussions / C#
   

C#

 
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.
QuestionProblem in reading a byte whose value is 0 Pin
M. J. Jaya Chitra14-Feb-09 4:39
M. J. Jaya Chitra14-Feb-09 4:39 
AnswerRe: Problem in reading a byte whose value is 0 Pin
Guffa14-Feb-09 5:57
Guffa14-Feb-09 5:57 
GeneralRe: Problem in reading a byte whose value is 0 Pin
M. J. Jaya Chitra14-Feb-09 13:53
M. J. Jaya Chitra14-Feb-09 13:53 
Questionproblem regarding update the image Pin
sadia12314-Feb-09 3:18
sadia12314-Feb-09 3:18 
AnswerRe: problem regarding update the image Pin
Deresen14-Feb-09 3:33
Deresen14-Feb-09 3:33 
GeneralRe: problem regarding update the image Pin
sadia12315-Feb-09 1:14
sadia12315-Feb-09 1:14 
GeneralRe: problem regarding update the image Pin
Deresen15-Feb-09 1:49
Deresen15-Feb-09 1:49 
GeneralRe: problem regarding update the image Pin
sadia12318-Feb-09 20:40
sadia12318-Feb-09 20:40 
QuestionMysql problem with inserting a blob Pin
hendrik14-Feb-09 2:29
hendrik14-Feb-09 2:29 
AnswerRe: Mysql problem with inserting a blob Pin
ABitSmart14-Feb-09 4:03
ABitSmart14-Feb-09 4:03 
GeneralRe: Mysql problem with inserting a blob Pin
hendrik14-Feb-09 4:56
hendrik14-Feb-09 4:56 
GeneralRe: Mysql problem with inserting a blob Pin
ABitSmart14-Feb-09 5:10
ABitSmart14-Feb-09 5:10 
GeneralRe: Mysql problem with inserting a blob [modified] Pin
hendrik14-Feb-09 6:37
hendrik14-Feb-09 6:37 
AnswerRe: Mysql problem with inserting a blob Pin
Luc Pattyn14-Feb-09 5:17
sitebuilderLuc Pattyn14-Feb-09 5:17 
Answer? Pin
Luc Pattyn14-Feb-09 7:44
sitebuilderLuc Pattyn14-Feb-09 7:44 
GeneralRe: ? Pin
hendrik14-Feb-09 8:39
hendrik14-Feb-09 8:39 
AnswerRe: ? Pin
Luc Pattyn14-Feb-09 9:53
sitebuilderLuc Pattyn14-Feb-09 9:53 

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.