Click here to Skip to main content
15,915,501 members
Home / Discussions / C#
   

C#

 
GeneralRe: Windows form global object Pin
Colin Angus Mackay4-Aug-07 0:50
Colin Angus Mackay4-Aug-07 0:50 
GeneralRe: Windows form global object Pin
Krugger4044-Aug-07 0:58
Krugger4044-Aug-07 0:58 
AnswerRe: Windows form global object Pin
Manoj Kumar Rai4-Aug-07 0:49
professionalManoj Kumar Rai4-Aug-07 0:49 
GeneralRe: Windows form global object Pin
Colin Angus Mackay4-Aug-07 0:52
Colin Angus Mackay4-Aug-07 0:52 
QuestionHow to open and read a file as a unicode char Pin
Life as a Coder3-Aug-07 23:32
Life as a Coder3-Aug-07 23:32 
AnswerRe: How to open and read a file as a unicode char Pin
Luc Pattyn3-Aug-07 23:52
sitebuilderLuc Pattyn3-Aug-07 23:52 
GeneralRe: How to open and read a file as a unicode char Pin
Life as a Coder4-Aug-07 0:03
Life as a Coder4-Aug-07 0:03 
GeneralRe: How to open and read a file as a unicode char Pin
Luc Pattyn4-Aug-07 0:17
sitebuilderLuc Pattyn4-Aug-07 0:17 
If you want to create an app that can read all file types, you must use
binary file operations, not text operations.
Text operations work for text files only, binary operations work for all
file types.

So you should use the BinaryReader class, you should not use anything that
is text oriented such as:
StreamReader.ReadLine()
File.ReadAllLines()
File.ReadAllText()
FileInfo.OpenText()
...
that is everything that has "Text" or "Line" in its name, or returns
a string or a char or a char[]. To read arbitrary data, you need a byte[].

If you decide the byte[] represents text after all, you can try and decode it using
the Text.Encoding class

MSDN holds an article "How to: Read and Write to a Newly Created Data File"
that should be of interest to you.

Smile | :)



AnswerRe: How to open and read a file as a unicode char [modified] Pin
Guffa4-Aug-07 0:51
Guffa4-Aug-07 0:51 
AnswerRe: How to open and read a file as a unicode char Pin
Mike Dimmick4-Aug-07 3:36
Mike Dimmick4-Aug-07 3:36 
QuestionIs it possible to enable controls on the form from a class. Pin
Janu_M3-Aug-07 23:23
Janu_M3-Aug-07 23:23 
AnswerRe: Is it possible to enable controls on the form from a class. Pin
Luc Pattyn3-Aug-07 23:54
sitebuilderLuc Pattyn3-Aug-07 23:54 
GeneralRe: Is it possible to enable controls on the form from a class. Pin
Janu_M4-Aug-07 0:11
Janu_M4-Aug-07 0:11 
GeneralRe: Is it possible to enable controls on the form from a class. Pin
Colin Angus Mackay4-Aug-07 0:26
Colin Angus Mackay4-Aug-07 0:26 
GeneralRe: Is it possible to enable controls on the form from a class. Pin
Luc Pattyn4-Aug-07 0:32
sitebuilderLuc Pattyn4-Aug-07 0:32 
AnswerRe: Is it possible to enable controls on the form from a class. Pin
Developer6114-Aug-07 0:14
Developer6114-Aug-07 0:14 
AnswerRe: Is it possible to enable controls on the form from a class. Pin
Manoj Kumar Rai4-Aug-07 0:27
professionalManoj Kumar Rai4-Aug-07 0:27 
GeneralRe: Is it possible to enable controls on the form from a class. Pin
Colin Angus Mackay4-Aug-07 0:33
Colin Angus Mackay4-Aug-07 0:33 
GeneralRe: Is it possible to enable controls on the form from a class. Pin
Manoj Kumar Rai4-Aug-07 0:37
professionalManoj Kumar Rai4-Aug-07 0:37 
AnswerRe: Is it possible to enable controls on the form from a class. Pin
Janu_M4-Aug-07 0:41
Janu_M4-Aug-07 0:41 
GeneralRe: Is it possible to enable controls on the form from a class. Pin
Developer6114-Aug-07 0:44
Developer6114-Aug-07 0:44 
QuestionTo genrate a log in text box Pin
Hum Dum3-Aug-07 21:49
Hum Dum3-Aug-07 21:49 
AnswerRe: To genrate a log in text box Pin
Christian Graus3-Aug-07 22:03
protectorChristian Graus3-Aug-07 22:03 
GeneralRe: To genrate a log in text box Pin
Hum Dum3-Aug-07 22:28
Hum Dum3-Aug-07 22:28 
QuestionHOw can I recreate .sln file that was deleted by system restore Pin
TheCat0073-Aug-07 20:25
TheCat0073-Aug-07 20:25 

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.