C
C#15mo ago
Ashy

❔ Unsure why im getting an index error with this

No description
14 Replies
Ashy
AshyOP15mo ago
No description
Ashy
AshyOP15mo 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
Pobiega15mo ago
You haven't shown what wiki is here, and that's likely what's throwing
Ashy
AshyOP15mo ago
what do you mean by this
Ashy
AshyOP15mo ago
No description
Ashy
AshyOP15mo ago
No description
Ashy
AshyOP15mo ago
No description
Ashy
AshyOP15mo ago
this reads the data but a new error is present
Ashy
AshyOP15mo ago
No description
kate!
kate!15mo 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
Pobiega15mo ago
your load seems extremely weird
Pobiega
Pobiega15mo ago
No description
Pobiega
Pobiega15mo ago
at least you are no longer indexing wiki based on the stream length
Accord
Accord15mo 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