Extracting Information From Text Files

Feb 5, 2011

I'm trying to identify a specific string within a text file, and then extra a couple of bits of information that follow from that.

Example snippet from text file:
>Date 5.3: Tech Manual {30201}
Freya Plumes (30201) - 1
mu

These are made from brightly coloured. I want to be able to find where it says "Tech Manual", and then assign "Freya Plumes", "30201" and "1" to variables for manipulating and exporting to another file. There will be many instances from the same text file with similar information, so I'd need the extracted strings popped into an array for later referencing.

View 7 Replies


ADVERTISEMENT

Extracting Information From Text?

Jul 4, 2011

I have the following text, it displays like this in a textbox, but is all stored in one string:

[Code].....

But I cant think of a way to do it, the only thing I can think is to try and grab the text on the line after each "+CMGR:"

View 2 Replies

Extracting Numbers From Text Files For A Combobox?

May 6, 2009

1. allow the user to specify a folder in which to find a specific text files,

2. to read a few specific numbers within each of those few text files, (eg. in txt file A, #A = '1', in txt file B, #B = '2', etc)

3. place those numbers into multiple comboboxes, (eg '1' into CB1, '2' into CB2, etc)

4. allow the user to change the number from the combobox drop down list, (eg CB1 change to '2', CB2 change to '1', etc)

5. Click to overwrite the old numbers in the text file with the new numbers and save the text files

My main problem is no. 2, how do I read a specific string in the text file and display it in the combobox?(Win XP, MS Visual Basic 2008 Express Edition with sp1)

View 3 Replies

Extracting Information From HTML?

Oct 2, 2009

The method I'm currently using to extract html and the parse is via a WebBrowser control.I'm grabbing a collection of tags, sorting through the ones I want, and then pulling the innertext.Doing this on my development machine is kind of slow, but manageable. At max, I can go through 60 different web pages across 3 different sites. It takes about 5 mins on my machine.

However, this app is targeted towards machine that have a quarter of the technology that my computer has. So, it takes anywhere from 10-15 minutes. This is less than ideal.I've bee reading up on the documentation on HTTPWebRequest. However, form what I've seen I can't seem to find a way to grab the HTML and then parse it with a method from HTTPWebRequest.

Due to the way I'll be using it, I won't be able to use RegEx to parse the data and was hoping there was a method within the HTTPWebRequest property to do it.

View 2 Replies

Extracting Partial Information Of XML?

Feb 19, 2011

I have a lot of information distributed among some tables in a database (and must likely it will all be represented into oop). I will need to create text files with different formats from the same data depending on the request. My idea is to create a design that will require no coding if such formats are to change of be added.I was thinking in using some sort of XML magic trick to accomplish this but I have no idea how to. I am also open to new ideas.

View 1 Replies

Extracting Specific Information From A Webpage

Feb 25, 2009

I want to extract a specific information from a webpage.For example:url...So can I make the software see what's between "<h1>Your IP address is<BR>", to "</h1>"?And doing all this by using the webbrowser form in Visual basic studio 2008.

View 1 Replies

VS 2008 Extracting Information From A Webpage?

May 10, 2009

I am trying to take specific information from a web page and then process that information so that it can be sent to a label or text box.Previously, I had wanted to do this by using Regular Expressions. I've looked around and it seems that using regular expressions to parse information isn't always the best way because website aren't always coded to standards.Regardless, learning regex isn't working out too well for me. So, I was wondering if there was another way to do this?I was thinking that I might be able to use the web browser control. It would be ideal to be able to see the page in the form, select the information, and then be able to display it.

View 8 Replies

VS 2008 Extracting Information From HTML?

Oct 2, 2009

The method I'm currently using to extract html and the parse is via a WebBrowser control. I'm grabbing a collection of tags, sorting through the ones I want, and then pulling the innertext.

Doing this on my development machine is kind of slow, but manageable. At max, I can go through 60 different web pages across 3 different sites. It takes about 5 mins on my machine.

However, this app is targeted towards machine that have a quarter of the technology that my computer has. So, it takes anywhere from 10-15 minutes. This is less than ideal.

Does anyone know of any other method that I could do that would take less resources and perform a lot quicker?

View 7 Replies

VS 2008 Extracting Information From Websites

Aug 16, 2009

I'm currently using a webbrowser control to extract information from multiple websites. At any given time, my application could be searching through 1-80 different webpages across 1-4 different websites. On my computer, it runs pretty quick. I could go through all 80 sites in just a few minutes. But when on another machine with fewer resouces, it runs awfully slow. Taking up to 15 minutes. Which kind of beats the purpose, but not entirely, of my application.

I'll begin by explaining my methods, and go from there. When utilizing the Webbrowser control, I use While statements and Application.DoEvents, instead of the Webbrowser controls's DocumentCompleted event. I'm wondering if this is one thing that could be slowing down the process. Though I'm not sure why it would be. Also, would utilizing separate threads help with this? I can't imagine it would boost performance. But I'm not entirely sure. I think it bogs down because the application uses so much memory when running. On idle, the application uses about 9.5k memory. When running, I've seen it go as high as 110k.

View 4 Replies

VS 2010 - Extracting Information From Website

Dec 20, 2010

I want to extract some information from a web site (Bloomberg). This side has a search textbox with a onKeyUp event that, as far as I can understand, uses AJAX to create a table. Is it possible to insert some text in the textbox and then get the table created with AJAX? Given the source code of the page with the tabled already AJAXed (If you understand what I want to say here), I can easily retrieve the table. I just need to get the source code with the table already on it.

View 7 Replies

Extracting EXIF Information/tags From Photos?

Aug 18, 2010

I'd like to look into extracting EXIF tags/data from jpg images. I've looked around but can't seem to see any simple example. Anyone able to point me into the direction of pulling out the model/date values etc out of EXIF data?

View 2 Replies

VS 2008 Extracting Information From 'database' (?) Behind Website?

Feb 3, 2010

My university has a website that students can use to check stuff like their lesson schedules, latest grades, exam times, etc. Just general information about you and your study (after you have logged in of course).For interested, this is the website (not much use without a login obviously, but still): [URL]I have been thinking lately that it would be nice to have a desktop application that could give me the same information. However, I have absolutely no idea how that would work, and whether or not it is even possible. I mean, technically it should be possible for me to get the information (how else does the website get it) provided it is not secured (even when using the correct login details). I am sure the website communicates with a database somewhere. Does that mean I could theoretically also communicate with the database (probably: read from it only, not write) for example by executing queries?If that is possible, how do I figure out which queries to use for the different pieces of information? Obviously I don't know the details of the database so I can't just send a random query and expect it to work...

View 8 Replies

VS 2008 Extracting Specific Information From The Registry?

Nov 1, 2009

I'm trying to get the version of IE and Google Chrome from the registry. I've successfully been able to get IE, but it seems chrome is eluding me.The following code is what I'm trying:

vb.net
Public Sub ChromeVersion()
Dim SoftwareKey As String = "HKEY_CURRENT_USERSoftwareGoogleUpdateClients{8A69D345-D564-

[code].....

View 2 Replies

Adding To Listbox Items With Out Text Files Or Databases To Retreive Any Information?

Mar 12, 2011

Several times av been come across of the need of how to create new variables on my application while is running and the next time i will run again the application to be existed in my source code and still be inside.

what excatly i mean is for example i have a listbox with out assigne it in any databound ,or retreive any items from any textbox i just want to insert some items inside

if i go from the designer then i can succesfully add any item i want and they will be there as i declare them.but if i want to to that programmatically i will be able to add them in the listbox but the next time i will run it again it will be lost.until i will select the command again to fill my listbox which is not what i want

in my case i have a datagridview which is running SQL querys and i want if the user selects to save this query i want from some way to save this query string in my listbox . and i want to be there the next time i will run my application with out using any text file or database,

is there any way to that ? i have search before i ask but obviusly my keywords dosen't much with what i was looking for

View 4 Replies

Extracting Data From PDF Files?

Jan 3, 2006

Im trying to extract predominately table data from a PDF file, however, I would also like the option to extract image files (such as graphs, etc) as well.Is it possible to extract data from PDF files using a VB.Net application? Im trying to get this process as automated as possible, so Im trying not to use 3rd party applications such as pdf file convertors or in-line pdf readers.

Are there any free, or relatively cheap PDF data capture API's/code snipets that I can use to import data from a PDF file? Another option is to export PDF data/images into an excel spreadsheet. Is there a .Net tool that will allow this?

View 3 Replies

Updating A Progressbar While Extracting Zip Files?

Mar 24, 2012

I would be grateful if someone can help me with this task. I am trying to extract a zip file and update a progress bar as it is being extracted to the d: drive. I assume the progress bar has to be set to the size of the text.zip file and update the progress bar incrementally but not sure how to actually implement it. I have it in a "do Loop" but it does not seem to be correct. If anyone feel like helping I would be grateful for that.

[Code]...

View 2 Replies

Storing Files Into An Application Compressing Them And Then Extracting Them?

Apr 8, 2009

How could I go about doing this if I can? Storing files into an application compressing them and then extracting them?

View 1 Replies

VS 2008 Extracting Icons From Files In Directory

Jul 24, 2009

I was able to extract icons from the current running processes and then put them into a ListView.

I am trying to do the same with files in a specified directory:

vb.net

[Code].....

When I use this code, I get an error stating: "'MainModule' is not a member of 'System.IO.FileInfo'." If I remove the very first line of the sub that specifies the directory, that error obviously goes away.

So, is there another method of extracting the icon? Or must I declare the directory in another way?

I'm getting ready to check MSDN to see if I can something withing the FileInfo Class,

View 4 Replies

Visual Basic 2008 Extracting Div Tags, Extracting Title Tags, Extracting Keyword Tags, Parsing Div Tags?

Nov 7, 2009

I was just wondering how to extract or parse any particual tags (whichever I specify) from webpages. I know how to extract text and links from webpages, but I tried to use the same method from the following code for div tags, title tags etcetera and it doesn't seem to work:

[Code]...

View 2 Replies

VS 2010 - Extracting Text - Convert The English Text Shown In Screen To Malayalam

Sep 6, 2010

I'm trying to create a small program, which I think will be helpful to others(in here). My aim is to convert the English text shown in screen to Malayalam. English-to-Malayalam conversion is not a problem. But the problem is, how to extract the text from the screen. In most of the converter/translator, the text needs to be copied or written down in the translator tool. But my program will cut off that part. That is, simply move the program window (having a rectangle hollow portion) to the English word that needs to be converted. And upon pressing a button (or autodetect), the English word is converted to Malayalam.

So, my question is how to extract the English text(or words) from the screen (which is seen through the hollow portion of the window.

Here's a screenshot of what I'm trying to do.

View 22 Replies

Extracting Text From A URL

Jul 21, 2010

I realize this may be a simple request, but I am fairly new to VB so even the simplest tasks are sometimes over my head. Basically, what I need is a function that will take a URL from one of the text boxes on my form, and extract a certain piece of text from that URL. The problem, for me, lies in the fact that the text in question isn't always in the same position, character wise, every time. Basically, the URL looks something like this:
url...randomNumbers rarely seems to be the same amount of characters each time, however the randomNumbersINeed always appear after the second underscore and end right before the third underscore, no matter the amount of randonNumbers that appears before hand.The process I am working on does the following:

1. Takes the raw URL that I have pasted into a text box on the form.
2. Declares that text as a string.
3. Extracts randomNumbersINeed from that string
4. Assigns or declares randomNumbersINeed as a string
5. Appends that string to a .txt file.

I can do steps 1, 2, 4, and 5 with no problem, in fact I've already got those set up in my code ready to go. I just need a function that could extract the numbers from the URL.Could someone help me out here or point me in the right direction?

View 5 Replies

Extracting Statement From Text Pad By Using VB?

Feb 6, 2012

I have one text file with few thousand lines of information. Out of few thousand lines, few hundred lines are something like:

Copy "\server1C$abc.msi" C:windowsinstaller1abc.msi
Copy "D: empxyz.msi" c:windowsinstallermissing.msi

Now it is really hard to find manually all those statement which starts with "copy ".I would like to create another new text file with all those statements which starts with "Copy".

View 1 Replies

Extracting Text From A Webpage?

Apr 22, 2010

Im trying to get certain text from a webpage and display it in a textbox. In the image below , i want to disply all the text after "Filename:" in a textbox as highlighted below.

View 16 Replies

Extracting Text From Htm File?

Aug 21, 2009

I am trying to extract text from an htm file (output.htm) to write into an SQL database.

I used "pdftotxt" to re-write the original pdf document into an htm file, in 'raw' format, and end up with lines like this:

Sun20
Off
0330
0329

[Code]....

What I am trying to do, using the above example, is to look for anywhere in the list where a date(e.g Mon24) is followed by lines containing KL ####, and to extract the date and the KL #### for writting to a database.

It seems like a huge task that is way beyond my limited capabilities, so I would be very grateful for some sample code in VBasic.

View 8 Replies

Extracting Certain Parts Of A Text From A String

May 12, 2011

what is the command line to single out certain parts of text from a string only..for example string = "Hellodullardtomboy".what is the command to capture only the word "DULL" between "hello" and "ardtomboy" only.

View 5 Replies

Extracting Numbers From String Text

Feb 1, 2009

I am trying to extract numbers from string text. e.g. 1 day (8 hours)' I need the one and the eight integers pulled out I would like to extract then store each number separately for use later. I am aware of techniques to count string text, but not pulling certain information from it.

View 7 Replies

Extracting Text From Emf In A .pptx File?

Dec 22, 2009

I am trying to extract text from a .pptx file. I am able to extract from all other shapes except a shape that is identified as a msoPicture to right click on this shape in powerpoint and ungroup it, but when I try to do this from code it tell me that the ungroup method only applied to group shapes.I did some research and found out that the msopicture shape comes from a .emf file but I don't have the least idea how to ungroup this shape or get the text from it through code.NB: When I right click on the shape in powerpoint and select ungroup a message box pops up saying "This is an imported picture, not a group. Do you want to convert it to a Microsoft Office drawing object?". But I cannot seem to find a way in code to convert this shape to Ms Office drawing object.

View 2 Replies

VS 2010 Extracting Text From <label> Tag?

Oct 29, 2010

I'm trying to extract the text between: <label for=field_1> and </label> I have captured the HTML into a string using the webbrowser control, and am using the following function to try and get the text within the tag:Public Function midReturn(ByVal first As String, ByVal last As String, ByVal total As String) As String

[Code]...

However, this code will not work, if I use <label for=field_1> as the first string and </label> as the second.

View 6 Replies

[2008] Extracting Text From A String?

Mar 14, 2009

basically i have heap loads of text in a sting.I want to be able to extract text between two point in my string.So say for example want to be able to extract the text between the two brackets.

View 10 Replies

Extracting Highlighted Text From A Text Box?

Nov 8, 2010

Extracting highlighted text from a text box

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved