Wintermute Engine Forum

Wintermute Engine => Bug reports => Not a bug => Topic started by: Dionysius on August 22, 2008, 11:44:34 AM

Title: File.Length = 0 for binary files
Post by: Dionysius on August 22, 2008, 11:44:34 AM
 :'(
I need to get length of a binary file, but "Length" property returns 0.
I write data to this file by WriteInt() method. The real length is not 0.
Title: Re: File.Length = 0 for binary files
Post by: metamorphium on August 22, 2008, 11:46:05 AM
post your code here.
Title: Re: File.Length = 0 for binary files
Post by: Dionysius on August 22, 2008, 11:52:43 AM
I'm sorry  :-[
The trouble was in
Code: [Select]
test.Close();
Game.Msg(test.Length);
But it should be
Code: [Select]
Game.Msg(test.Length);
test.Close();