Newcomer to C# here.
I am learning C# by myself with no previous experience other than Basic (yes the old one) and Assembler for micros, so bear with me, please.
Working with files (binary and text) offer so many options / variants that I find them somewhat overwhelming.
I have the feeling that there is not a "one fits all" solution but I would like to avoid wasting time trying to learn every single way, to find later that it was not worth the pain.
What is the criteria to use the different methods / classes?
Honestly, every time I try to revise the subject something new shows up adding to my confusion which increases with someone else saying:"this is the right thing to do!".
Since the initial application I have in mind is supposed to be (binary and text) file-intensive I want this straight from the beginning and I have no so much time available.
Just in case, please keep all referred to Console output/input. I will work out my way for a graphic interface at a later moment.
Help is needed and appreciated. Gracias.
Bechir BejaouiPosted Dec 7, 2008, 4:55 AM
Agustin FerrariPosted Dec 6, 2008, 9:54 AM
I appreciate the effort but please stick to English. The outcome of most of translators is close to ridiculous. If a serious subject is translated it could be even risky to take the translation for good.
I expected a guideline with the criteria to follow and no a list of sentences which I hardly could construe as a guideline for me. Thanks anyway.
Bechir BejaouiPosted Dec 3, 2008, 10:24 AM
Agustin FerrariPosted Dec 2, 2008, 5:10 PM
Bechir BejaouiPosted Dec 2, 2008, 1:03 PM
Yes, the exam revision, this is a condensate resume of the System.IO files
Agustin FerrariPosted Dec 2, 2008, 6:23 AM
Do you mean the exam revision...?
I don't know where to look at.
Bechir BejaouiPosted Dec 2, 2008, 3:55 AM
Agustin FerrariPosted Dec 1, 2008, 3:57 PM
I think I understand the basics of binary/text files. My question is not about them.
I actually want to know what is the criteria to select objects/classes/methods to open/read/write/append,seek/erase/create/etcetera, files.
There are many options to do the same thing. Could you help on that?
Bechir BejaouiPosted Dec 1, 2008, 3:00 PM
I guess if I well understood your question you want to know when using binary file and when using text or any other format like xml is it?
Agustin FerrariPosted Dec 1, 2008, 2:23 PM
I quote myself here:
Working with files (binary and text) offer so many options / variants that I find them somewhat overwhelming.
What is the criteria to use the different methods / classes?
...every time I try to revise the subject something new shows up adding to my confusion...
As you could see I am asking for the criteria to follow, not code.
I do not want to study every option if not actually needed.
Bechir BejaouiPosted Dec 1, 2008, 2:02 PM