Jump to content
Sign in to follow this  
Mast3rpyr0

Why is this broken?

Recommended Posts

Mast3rpyr0

$File1 = FileOpen("test.gif", 16)

$File2 = FileRead($File1)

MsgBox(0, "test", $File2)

FileClose($File1)

This causes 99% of my CPU to be used lol. whats wrong with it and why doesnt it output what i want?

Edited by Mast3rpyr0

Share this post


Link to post
Share on other sites
Jos

$File1 = FileOpen("test.gif", 16)

$File2 = FileRead($File1)

MsgBox(0, "test", $File2)

FileClose($File1)

This causes 99% of my CPU to be used lol. whats wrong with it and why doesnt it output what i want?

so you weant to see what ? Test.gif as picture or as Data ?

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Mast3rpyr0

i wanna see the binary data so i can take part out and basically have a broken file that i can put back together kinda like winrar and creating .part0 files

Edited by Mast3rpyr0

Share this post


Link to post
Share on other sites
Mast3rpyr0

ok i just realized that FileOpen is only for text files. is there any other function that i can use to get the binary data of this image or make it into 2 different broken files?

Share this post


Link to post
Share on other sites
Jos

ok i just realized that FileOpen is only for text files.

.. lost me on this one ... FileOpen() is to open a File to be able to read it with FileRead() .

ok i just realized that FileOpen is only for text files. is there any other function that i can use to get the binary data of this image or make it into 2 different broken files?

Why are you trying to do a msgbox for Binary data ?

Can imagine that gives a problem ......


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Mast3rpyr0

just to see if its reading. is there another way to output this?

From Help Doc:

| filename | Filename of the text file to open. |
Edited by Mast3rpyr0

Share this post


Link to post
Share on other sites
GaryFrost

It's not broken, you have to know what your looking for in a binary file, the header for example

take a look at: http://www.autoitscript.com/forum/index.ph...st&p=356382


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.