Hi,
How to read each character from a text file, or read data and put into my char buffer in metro app, I am writing in c++;
Here my code:
task<StorageFile^>(KnownFolders::DocumentsLibrary->GetFileAsync("mytext.txt")).then([this](task<StorageFile^>
getFileTask)
{try
{ _sampleFile =
getFileTask.get();
});
}
if (_sampleFile != nullptr){
task<String^>(FileIO::ReadTextAsync(_sampleFile)).then([this](String^
fileContent)
{
Scenario2Output_textblock->Text = fileContent;
});
}
actually am able to read data in fileContent,but I want to read each character. Can any one help me?
Anil Kumar