Please login or register.

Login with username, password and session length
Advanced search  

News:

Forum rules - please read before posting, it can save you a lot of time.

Author Topic: File.Length = 0 for binary files  (Read 10689 times)

0 Members and 1 Guest are viewing this topic.

Dionysius

  • Frequent poster
  • ****
  • Karma: 3
  • Offline Offline
  • Gender: Male
  • Posts: 361
    • View Profile
    • On the Tracks of Dinosaurs
File.Length = 0 for binary files
« 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.
Logged

metamorphium

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 12
  • Offline Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
Re: File.Length = 0 for binary files
« Reply #1 on: August 22, 2008, 11:46:05 AM »

post your code here.
Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet

Dionysius

  • Frequent poster
  • ****
  • Karma: 3
  • Offline Offline
  • Gender: Male
  • Posts: 361
    • View Profile
    • On the Tracks of Dinosaurs
Re: File.Length = 0 for binary files
« Reply #2 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();
Logged
 

Page created in 0.029 seconds with 20 queries.