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
Prince
NA
12
0
Need help on index was outside..
Feb 3 2010 9:48 AM
this is part of my code ,though the program run(not really correct
)also have this message "Index was outside the bounds of the array"
using
(
StreamReader
sr =
new
StreamReader
(
"Date.txt"
))
{
String
line;
while
((line = sr.ReadLine()) !=
null
)
{
Date
mydate =
new
Date
();
int
monthTemp;
int
dayTemp;
int
yearTemp;
String
[] str = line.Split(
' '
);
Int32
.TryParse(str[0],
out
monthTemp);
mydate.Month = monthTemp;
Int32
.TryParse(str[1],
out
dayTemp);
mydate.Day = dayTemp;
Int32
.TryParse(str[2],
out
yearTemp);
mydate.Year = yearTemp;
Reply
Answers (
2
)
audio and c# enthusiast
Tracking clients in LAN using C# .NET