C
C#10mo ago
Ashy

❔ Unsure why im getting an index error with this

No description
14 Replies
Ashy
Ashy10mo ago
No description
Ashy
Ashy10mo ago
I'm trying to load a bin file for my assessment, i could try another file type and see if the issue persists but its weird
Pobiega
Pobiega10mo ago
You haven't shown what wiki is here, and that's likely what's throwing
Ashy
Ashy10mo ago
what do you mean by this
Ashy
Ashy10mo ago
No description
Ashy
Ashy10mo ago
No description
Ashy
Ashy10mo ago
No description
Ashy
Ashy10mo ago
this reads the data but a new error is present
Ashy
Ashy10mo ago
No description
kate!
kate!10mo ago
you should store the amount of items in that file as the first item. so before you for your for loop to write, you do bw.Write(wiki.Count) then instead of doing the length of the stream (which is the size in bytes) you do br.ReadInt32() for the amount to iterate
Pobiega
Pobiega10mo ago
your load seems extremely weird
Pobiega
Pobiega10mo ago
No description
Pobiega
Pobiega10mo ago
at least you are no longer indexing wiki based on the stream length
Accord
Accord10mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server
More Posts