Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

mark parts of a text file

Posted on 2011-09-18
3
Medium Priority
?
232 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 86

Accepted Solution

by:
Mike Tomlinson earned 2000 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 86

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

721 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