• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/3

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

3 Cards in this Set

  • Front
  • Back
How do you read the contents of a file into a string in C#?
StreamReader sr = File.OpenText(file);
string s = sr.ReadToEnd();
sr.Close();

Also:
sr.Read()
sr.ReadLine()
<cstdlib>
wcstombs()

http://www.cplusplus.com/reference/clibrary/cstdlib/wcstombs/
Convert wide-character string to multibyte string
What are descriptors?
So why are they called 'descriptors' rather than -------?
What are descriptors?
Descriptors are Symbian OS strings.

So why are they called 'descriptors' rather than strings?
They're known as 'descriptors', because they are self describing. Each descriptor object holds the length of the string of data it represents as well as its 'type', which identifies the underlying memory layout of the data it holds.