Mast3rpyr0 Posted June 18, 2007 Share Posted June 18, 2007 (edited) $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 June 18, 2007 by Mast3rpyr0 My UDF's : _INetUpdateCheck() My Programs : GameLauncher vAlpha, InfoCrypt, WindowDesigner, ScreenCap, DailyRemindersPick3GeneratorBackupUtility! Other : Bored? Click Here! Link to comment Share on other sites More sharing options...
Developers Jos Posted June 18, 2007 Developers Share Posted June 18, 2007 $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 More sharing options...
Mast3rpyr0 Posted June 18, 2007 Author Share Posted June 18, 2007 (edited) 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 June 18, 2007 by Mast3rpyr0 My UDF's : _INetUpdateCheck() My Programs : GameLauncher vAlpha, InfoCrypt, WindowDesigner, ScreenCap, DailyRemindersPick3GeneratorBackupUtility! Other : Bored? Click Here! Link to comment Share on other sites More sharing options...
Mast3rpyr0 Posted June 18, 2007 Author Share Posted June 18, 2007 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? My UDF's : _INetUpdateCheck() My Programs : GameLauncher vAlpha, InfoCrypt, WindowDesigner, ScreenCap, DailyRemindersPick3GeneratorBackupUtility! Other : Bored? Click Here! Link to comment Share on other sites More sharing options...
Developers Jos Posted June 18, 2007 Developers Share Posted June 18, 2007 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 More sharing options...
Mast3rpyr0 Posted June 18, 2007 Author Share Posted June 18, 2007 (edited) 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 June 18, 2007 by Mast3rpyr0 My UDF's : _INetUpdateCheck() My Programs : GameLauncher vAlpha, InfoCrypt, WindowDesigner, ScreenCap, DailyRemindersPick3GeneratorBackupUtility! Other : Bored? Click Here! Link to comment Share on other sites More sharing options...
GaryFrost Posted June 18, 2007 Share Posted June 18, 2007 It's not broken, you have to know what your looking for in a binary file, the header for exampletake 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 More sharing options...
Mast3rpyr0 Posted June 18, 2007 Author Share Posted June 18, 2007 i have no idea what i was supposed to look at there lol sorry. if possible i would like to be able to break apart the file instead like winrar and .part0 files My UDF's : _INetUpdateCheck() My Programs : GameLauncher vAlpha, InfoCrypt, WindowDesigner, ScreenCap, DailyRemindersPick3GeneratorBackupUtility! Other : Bored? Click Here! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now