C
C#16mo ago
Ashy

❔ Unsure why im getting an index error with this

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

Did you find this page helpful?