Solved

mark parts of a text file

Posted on 2011-09-18
3
228 Views
Last Modified: 2013-12-17
I am looking for a working example of a c# program that loads a text file and allows you to:

1) mark the starting line of the data portion
2) mark the ending line of the data portion
3) mark the starting location of several columns

Basically, with a file of a bunch text, mark off the "data" portion, then give the program the locations of each column allowing it then to break down all the data into rows/columns format.

To mark the columns, I would like the user just to click in the data itself and register the start locations (how many characters over).
0
Comment
Question by:freshgrill
  • 2
3 Comments
 
LVL 85

Accepted Solution

by:
Mike Tomlinson earned 500 total points
ID: 36558183
0
 

Author Comment

by:freshgrill
ID: 36568659
Ok, totally new. But in VB 2010 Express. I created a new project and just pasted that code. When I try to run, I get:


Error      1      'Protected Overrides Sub Dispose(disposing As Boolean)' has multiple definitions with identical signatures.      C:\Users\administrator.FRESHGRILL\documents\visual studio 2010\Projects\test\test\Form1.Designer.vb      7      29      test


Error      2      'Private Sub InitializeComponent()' has multiple definitions with identical signatures.      C:\Users\administrator.FRESHGRILL\documents\visual studio 2010\Projects\test\test\Form1.Designer.vb      24      17      test

Error      3      'components' is already declared as 'Private components As System.ComponentModel.IContainer' in this class.      C:\Users\administrator.FRESHGRILL\documents\visual studio 2010\Projects\test\test\Form1.vb      29      13      test

Warning      4      Unused local variable: 'cr'.      C:\Users\administrator.FRESHGRILL\documents\visual studio 2010\Projects\test\test\Form1.vb      254      13      test


0
 
LVL 85

Expert Comment

by:Mike Tomlinson
ID: 36568805
Everything between { #Region " Windows Form Designer generated code " } and { #End Region } at the beginning of the code now goes into a separate file with the newer Visual Studios (I think I was using VB.Net 2003 at the time).  You'd have to look closely at the control declarations to figure out how they were laid out.

I'll see if I can find it on my computer and upload an updated version.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question