flat assembler
Message board for the users of flat assembler.

Index > Main > Getting the size of a file included with "file" di

Author
Thread Post new topic Reply to topic
3ric



Joined: 19 Dec 2013
Posts: 14
3ric
i have just included a file in my program
eg:
my_file file 'image.jpg'

So is there any way to get the size of this file using my_file variable.
Post 26 May 2014, 23:46
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17472
Location: In your JS exploiting you and your system
revolution
Code:
my_file: file 'image.jpg'
sizeof.my_file = $ - my_file    
Post 26 May 2014, 23:51
View user's profile Send private message Visit poster's website Reply with quote
3ric



Joined: 19 Dec 2013
Posts: 14
3ric
thanks revolution.
Post 27 May 2014, 00:17
View user's profile Send private message Reply with quote
3ric



Joined: 19 Dec 2013
Posts: 14
3ric
one more question is there any way to get that filename 'image.jpg' through my_file variable.
Post 27 May 2014, 06:54
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17472
Location: In your JS exploiting you and your system
revolution
The file name is not stored by fasm anywhere. You can use equ to hold the name.
Code:
my_file.name equ 'image.jpg'    
Post 27 May 2014, 09:17
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.