TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Mastermosley
NA
13
9.3k
C# - Generate Array at runtime
May 18 2011 2:36 AM
I have an array char[] buffer but I dont want to initialize it because I dont no how big its going to be. I have a simple StreamReader.Read() and I am processing each character, if the character is legit I add it to the buffer.
buffer[buffersize] = c;
buffersize++;
And if the char is a \r or \n thats a new line so I send the final buffer and process the command
if the char is 8 which is a backspace I want to delete the last character in the array.
buffersize--;
What I want to accomplish is that by subtracting 1 from the buffersize I want to delete the buffer[buffersize].
Any ideas am I missing something?
Reply
Answers (
5
)
How to get URL of downloading file in the desktop application as like the download manger.
How to validate text box numeric type.