Jump to content

Why is this broken?


Recommended Posts

$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
Link to comment
Share on other sites

  • Developers

$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 ?

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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?

Link to comment
Share on other sites

  • Developers

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 ......

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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.

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...