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?
Professional Software Development Tools
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?
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.
![]()
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!
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...?
This code assumes you have an input object, a paragraph object, and place the code on (button On click).Code: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 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:
Remember:Code: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)
if (Variable[1] ~= "CANCEL") then
Thanks holtgrewe and ShadowUK
I chek it and reply here.
I wish to work it.
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
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.
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.