473,785 Members | 2,388 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

(Shareware?) file search for huge file?

Howdy!

The search is a 1 GB+ file from a crash to be exact - had an
e-mail correspondence (window) hopefully in it so I saved
the file on reboot before windoze kicked in and want to open
and search it for my e-mail, then delete the file...

Anyone know of a program to do that which can find and then
go up and down to extract or cut and paste my e-mail. It
took a day to write that e-mail and I can't imagine trying
to rewrite. Also, I COULD attempt to write a program myself
to do it, but my C is rusty X 5+ years and would take me all
day to get back in the saddle (hence the search for a
program to do the parsing for me).

It can run in DOS or under Win98 please... . but my compiler
is in a computer that I can't unpack at the moment, so a
down and dirty write in C won't help :-(

Thanks!

Steve
Nov 14 '05 #1
3 1358

<jd******@hiwaa y.net> wrote in message news:42******** *******@hiwaay. net...
Howdy!

The search is a 1 GB+ file from a crash to be exact - had an
e-mail correspondence (window) hopefully in it so I saved
the file on reboot before windoze kicked in and want to open
and search it for my e-mail, then delete the file...

Anyone know of a program to do that which can find and then
go up and down to extract or cut and paste my e-mail.
Have you tried Microsoft Word or the WordPad application
that comes with Windows? With a file that large there
would probably be some VM thrashing, but if the data's
that important it should be worth the pain.
It
took a day to write that e-mail and I can't imagine trying
to rewrite. Also, I COULD attempt to write a program myself
to do it, but my C is rusty X 5+ years and would take me all
day to get back in the saddle (hence the search for a
program to do the parsing for me).


If the data's that important, is a day's work too much to pay
to get it back?

BTW your query is not really topical here. Google can find
enormous amounts of free software for virtually any application.
Have you tried Google?

-Mike
Nov 14 '05 #2
Mike Wahler wrote:

<jd******@hiwaa y.net> wrote in message news:42******** *******@hiwaay. net...
Howdy!

The search is a 1 GB+ file from a crash to be exact - had an
e-mail correspondence (window) hopefully in it so I saved
the file on reboot before windoze kicked in and want to open
and search it for my e-mail, then delete the file...

Anyone know of a program to do that which can find and then
go up and down to extract or cut and paste my e-mail.
Have you tried Microsoft Word or the WordPad application
that comes with Windows? With a file that large there
would probably be some VM thrashing, but if the data's
that important it should be worth the pain.


Indeed, it is worth it - but alas, that didn't work
(presumably wordpad can't open a file that big).
It
took a day to write that e-mail and I can't imagine trying
to rewrite. Also, I COULD attempt to write a program myself
to do it, but my C is rusty X 5+ years and would take me all
day to get back in the saddle (hence the search for a
program to do the parsing for me).


If the data's that important, is a day's work too much to pay
to get it back?


No, but programmers don't usually like to reinvent the wheel
- and surely someone has written this utility for themselves
and probably would love to share it.
BTW your query is not really topical here. Google can find
enormous amounts of free software for virtually any application.
Have you tried Google?
Yes, I gave it a cursory (hour) look and ultimately it led
me here. As I stated, I'm simply too rusty to do this myself
in a timely fashion. I've rewritten the letter, but it was
missing a lot of important details and perhaps a few
"revelation s", so I can't give up yet.

While the problem in its current incarnation doesn't rise to
the level of being fully on topic, it will if I begin coding
and brick wall on a few spots I don't remember correctly. I
figure open the file and close it to see how long it takes,
then seek some deep inward spot to see how long that takes
and decide on a buffer size from that? I can see this task
is going to be running two weeks plus if I don't model the
problem well enough first - so, THAT's why I asked if its
already out there first...
-Mike


Best,

Steve
Nov 14 '05 #3
On Mon, 18 Apr 2005 06:42:04 -0700, jd******@hiwaay .net
<jd******@hiwaa y.net> wrote:
Mike Wahler wrote:

<jd******@hiwaa y.net> wrote in message news:42******** *******@hiwaay. net...
> Howdy!
>
> The search is a 1 GB+ file from a crash to be exact - had an
> e-mail correspondence (window) hopefully in it so I saved
> the file on reboot before windoze kicked in and want to open
> and search it for my e-mail, then delete the file...
>
> Anyone know of a program to do that which can find and then
> go up and down to extract or cut and paste my e-mail.
Have you tried Microsoft Word or the WordPad application
that comes with Windows? With a file that large there
would probably be some VM thrashing, but if the data's
that important it should be worth the pain.


Indeed, it is worth it - but alas, that didn't work
(presumably wordpad can't open a file that big).


Search for grep on Google (Cygwin has one but you don't want to download
the whole of Cygwin just for grep). Or your Windows compiler tools may
provide grep. Then use that to search the file for a string you know
near the start of the message.

However, there is no guarantee that the data in memory was at all
contunuous. Indeed, if it was being edited it may well have been kept
as a linked list of lines or something stranger, so just finding one
line of the message may not be any indication at all of where the rest
of the message text was. It may not even be kept as ASCII text at all.
If the data's that important, is a day's work too much to pay
to get it back?


No, but programmers don't usually like to reinvent the wheel
- and surely someone has written this utility for themselves
and probably would love to share it.


For what email program? I can't even write such a program for the two I
use on Linux, I doubt if any two email programs use the same way of
storing messages being created.
Yes, I gave it a cursory (hour) look and ultimately it led
me here. As I stated, I'm simply too rusty to do this myself
in a timely fashion. I've rewritten the letter, but it was
missing a lot of important details and perhaps a few
"revelation s", so I can't give up yet.
Look for 'grep' and 'strings', command-line Unix tools which have some
ports to Windows.

Also look for a binary editor, there are several available for Win32, my
favourite is XVI32, they generally have search facilities.
While the problem in its current incarnation doesn't rise to
the level of being fully on topic, it will if I begin coding
and brick wall on a few spots I don't remember correctly. I
figure open the file and close it to see how long it takes,
then seek some deep inward spot to see how long that takes
and decide on a buffer size from that? I can see this task
is going to be running two weeks plus if I don't model the
problem well enough first - so, THAT's why I asked if its
already out there first...


Just use the largest buffer available to you, there's no point in doing
seeks. If you want advice on core dump layout to decide where to start
you need to ask on an OS specific newsgroup. I don't see anything which
is particularly on-topic for comp.lang.c, you need an OS-specific
newsgroup (and/or one specific to your email program). Searching for
text in a file is simply a matter of reading the file and scanning the
data for the text, it's an algorithm problem not a C one...

Chris C
Nov 14 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
1561
by: Jeremy | last post by:
I'm new to .Net. Specifically, I just started playing around with VB ..Net 2003. I'm considering developing some shareware applications. Would you consider .Net a suitable platform for this? I know I can create my apps in VB.Net since I've already built some prototypes, but the Framework issues concern me. I understand you have to have the framework installed and that it can
1
1720
by: Bob | last post by:
I'm looking at the docs in VS2005 regarding starter kits and I noticed that the starter kits to download from the site are in vsi files (compressed), all except the shareware starter kit. MS docs says that templates should be in compressed files. The Shareware starter kit is in msi file so when you install it you get a solution that includes some other projects, but it does not appear in the templates when you want to start a new project....
26
1487
by: Nick J | last post by:
Hi, I want to be able to offer a time limited version of my database. For example I do not want the program to be able to run after x ammount of days have gone by. Could I create this inside access? --
2
1110
by: Matthew | last post by:
I have written a nice little application, and have been told that it might be worth distributing as shareware. I poked around in the VB.NET help file, but couldn't find any information on the subject. Does anybody know if this has been done before, and what the standard schemes are? Matthew
9
1262
by: Mitchell Vincent | last post by:
I recently jumped on the .NET bandwagon and have been playing around in Visual Studio and reading a few books for about 2 weeks now. It occurs to me that I've never seen a desktop application written in .NET, at least none that ever required me to install the framework (I only recently installed it with Visual Studio). I know there are people that are developing shareware using .NET and I'm curious as to how people are handling the...
12
3054
by: Yi Xing | last post by:
Hi All, I want to read specific lines of a huge txt file (I know the line #). Each line might have different sizes. Is there a convenient and fast way of doing this in Python? Thanks. Yi Xing
3
2165
by: Ahmad Jalil Qarshi | last post by:
Hi, I have a text file having size about 2 GB. The text file format is like: Numeric valueAlphaNumeric values Numeric valueAlphaNumeric values Numeric valueAlphaNumeric values For example consider following chunk of actual data:
16
8955
by: vizzz | last post by:
Hi there, i need to find an hex pattern like 0x650A1010 in a binary file. i can make a small algorithm that fetch all the file for the match, but this file is huge, and i'm scared about performances. Is there any stl method for a fast search? Andrea
32
1845
by: kid joe | last post by:
Hi Can anyone share their experiences regarding which approach (ShareWare vs Evaluation-ware) works best to protect profits and keep customers pleased? Having a ShareWare product that can be activated to a fully enabled version of that product with a registration code has it's disadvantages (given the numerous websites that post 'regcodes'), but ShareWare is also a fast and efficient means in keeping a customer happy. Evaluation-ware,...
0
9647
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10163
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10104
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9959
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6744
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5397
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4063
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3668
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.