|
-
Jul 22nd, 2008, 06:38 AM
#1
Thread Starter
Addicted Member
Problem in StreamReader::Readblock() method.
Hello Friends,
Here is the code...
Code:
Char buffer3[];
buffer3 = new Char[1000];
FileStream *fs = new FileStream(path,FileMode::Open,FileAccess::Read);
StreamReader *stmReader = new StreamReader(fs);
stmReader->ReadBlock(buffer3, 0, 35);
tempstr = buffer3->ToString();
The problem is that i am getting "System.Char[]" as a string in tempstr variable....whereas I want the value of buffer3 in tempstr.
Regards,
Sid.
THE BEST WAY TO THANK A HELPFUL POST IS TO RATE IT!!!!
Take up one idea. Make that one idea your life - think of it, dream of it, live on that idea. Let the brain, muscles, nerves, every part of your body, be full of that idea, and just leave every other idea alone.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|