Solved

mark parts of a text file

Posted on 2011-09-18
3
224 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
Comment Utility
0
 

Author Comment

by:freshgrill
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

762 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now