View Full Version : How to Finding a Thing in non-text file contents?
Esfahan
03-24-2008, 03:03 AM
How to Finding a Thing in non-text file contents?
we Assumed that we have a "*.dat" file whit 500MB size file.
and "*.dat" Contained of Content character.
I need Finding "enything" on it .How to do it?
rexzooly
03-24-2008, 04:46 AM
How to Finding a Thing in non-text file contents?
we Assumed that we have a "*.dat" file whit 500MB size file.
and "*.dat" Contained of Content character.
I need Finding "enything" on it .How to do it?
far as i understand it that ams like kinda rars them as my winrar picks them up
as locked rar arcives but its unable to unlock them as it don't know the password.
Esfahan
03-24-2008, 06:50 AM
Hi Dear rexzooly
I am accepted your explanation on above.
not is anyway method for do it?
I want to find a group of character in a non-Text file.
Allow me that say which file!
MY Intent From non-Text is the "*.Iso" (Image file)!
oh, Please no say me that its no way do it!
AMS Can it worked.
http://i28.tinypic.com/2z4k41w.jpg
rexzooly
03-24-2008, 07:12 AM
Hi Dear rexzooly
I am accepted your explanation on above.
not is anyway method for do it?
I want to find a group of character in a non-Text file.
Allow me that say which file!
MY Intent From non-Text is the "*.Iso" (Image file)!
oh, Please no say me that its no way do it!
AMS Can it worked.
http://i28.tinypic.com/2z4k41w.jpg
why do you need to the that to find out what file it is you
could juet string.split can't remeber the full comand.
Esfahan
03-24-2008, 08:18 AM
I have researching to Protect cd.(in about 2 Year)
I want iso image (vcd format)howto retouch that then Write it on cd:
1- only, display by vcd player.(no pc)
2- no extractable of cd to hard drive.
Abute VCD, I discover than retouch where from iso image for Reach above Goal.
But ,retouch do it is hard and take time.
I make Decide to create a App for it and share it on free in www.
This is all of Adventure!
holtgrewe
03-24-2008, 08:44 AM
When dealing with binary files and Hex characters, many character are not readily printable nor displayable.
However if you are searching for text data, something like the code below may be helpful.
I don't know how large a text file AMS will handle when building a string...?
whatFile = Dialog.FileBrowse(true, "*", "C:", "", "*", "", false, false)
binString = TextFile.ReadToString(whatFile[1])
Paragraph.SetText("Paragraph1", ""..binString)
arg = Input.GetText("Input1")
Where = String.Find(""..binString, ""..arg, 1, true)
Dialog.Message("Data found at file pos:", ""..Where)
This code assumes you have an input object, a paragraph object, and place the code on (button On click).
This code will return the starting pos in the String/file of the search argument.
You will need to test this, as many characters may not be transferred properly.
hth
ShadowUK
03-24-2008, 09:45 AM
When dealing with binary files and Hex characters, many character are not readily printable nor displayable.
However if you are searching for text data, something like the code below may be helpful.
I don't know how large a text file AMS will handle when building a string...?
whatFile = Dialog.FileBrowse(true, "*", "C:", "", "*", "", false, false)
binString = TextFile.ReadToString(whatFile[1])
Paragraph.SetText("Paragraph1", ""..binString)
arg = Input.GetText("Input1")
Where = String.Find(""..binString, ""..arg, 1, true)
Dialog.Message("Data found at file pos:", ""..Where)
This code assumes you have an input object, a paragraph object, and place the code on (button On click).
This code will return the starting pos in the String/file of the search argument.
You will need to test this, as many characters may not be transferred properly.
hth
More like:
whatFile = Dialog.FileBrowse(true, "*", "C:", "", "*", "", false, false)
if (whatFile[1] == "CANCEL") then
-- They pressed cancel.
else
-- They chose a file.
binString = TextFile.ReadToString(whatFile[1])
Paragraph.SetText("Paragraph1", ""..binString)
arg = Input.GetText("Input1")
Where = String.Find(""..binString, ""..arg, 1, true)
Dialog.Message("Data found at file pos:", ""..Where)
Remember:
if (Variable[1] ~= "CANCEL") then
Esfahan
03-24-2008, 10:54 PM
Thanks holtgrewe and ShadowUK
I chek it and reply here.
I wish to work it.
Esfahan
03-24-2008, 11:30 PM
if you can explain this cods for me
I can not apply it for search a string in non-text file
specialy I no understand : ""..binString
Esfahan
03-27-2008, 01:11 PM
Hello guys
is there a plugin for searching a string in Unlike-Text and replac whit a string?
for example "myfile.iso"
Please help me. I can not make a plugin for it.
I searching in forum and discover that exist a plugin for it.
but no find it.
Please get me a link for download it or guid me whit a code or projrct ...
I am newbie in forum , please aid me.
Extreme Thanks.
holtgrewe
03-27-2008, 01:42 PM
Esfahan
My prior post was for text based data and would probably not work real well with a non-text binary file. AMS is fairly robust when dealing with text based data, but would not be a good tool to use for 'patching' a binary file. Someone may have or may write a DLL that could do this but there may be tools available on the internet that may be a viable solution for you.
Esfahan
03-27-2008, 02:12 PM
Esfahan
My prior post was for text based data and would probably not work real well with a non-text binary file. AMS is fairly robust when dealing with text based data, but would not be a good tool to use for 'patching' a binary file. Someone may have or may write a DLL that could do this but there may be tools available on the internet that may be a viable solution for you.
Thanks Dear holtgrewe
U get me Hope for Live
Iam waiting for help from Same Someone .
Thanks
Powered by vBulletin™ Version 4.0.6 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.