hey
how can I delete the first two lines of this file and copy the rest in an array with the split function in visual basic so I need an example for this file
file:
ATERIAL:Inox 304L 3/16 po
WELDING:Soudage au plasma
0.050:221.23;222.06;220.17
0.200:229.34;231.58;230.51
0.250:237.89;237.73;237.95
0.400:245.12;244.98;244.14
0.550:215.66;216.58;215.51
0.750:173.34;175.25;174.12
0.800:174.23;173.41;173.35
Design:


Coding:
Imports System.IO
Public Class Form1
Private Sub btnsubmit_Click(sender As Object,
e As EventArgs) Handles btnsubmit.Click
Dim FILE_NAME As String
= Application.StartupPath + "\example.txt" ''please store it in
debug folder
Dim line As String
Dim lines As String =
""
Dim i As Integer =
0
Using sr As StreamReader
= New System.IO.StreamReader(FILE_NAME)
line = sr.ReadLine()
While (line <> Nothing)
line = sr.ReadLine()
If (i > 2) Then
lines = lines + line + vbNewLine
End If
i = i + 1
End While
sr.Close()
End Using
My.Computer.FileSystem.DeleteFile(FILE_NAME) ''clear file
here
If Not
System.IO.File.Exists(FILE_NAME) Then
System.IO.File.Create(FILE_NAME).Dispose()
End If
My.Computer.FileSystem.WriteAllText(FILE_NAME, lines, True) 'file
text store here
Dim strarr() As
String
strarr =
lines.Split(":") ''split string here
For Each s As String In
strarr
TextBox1.Text = TextBox1.Text + s + vbNewLine ''textfile here
Next
End Sub
End Class
output:

if you still have any Problem regarding this question please comment and if you like my code please appreciate me by thumbs up thank you.........
hey how can I delete the first two lines of this file and copy the rest...
how can i Draw with Excel the curve of the hardness as a function of the distance from the series of coordinates obtained by interpolating the data and saved in your .csv file. Use Excel's scatter chart. Format the data series to decrease the size of the marker. Insert the image of the curve obtained in your report. Observe the curve and the points provided in file 1 and comment on whether this curve makes sense. i need a code...
I am confused on how to read valid lines from the input file. I am also confused on how to count the averages from these valid input lines to keep running the total from these valid lines. If you could show an example of an input and output file that would be amazing as well. Purpose Learn how to use Java input/output. Due Date Per the Course at a Glance. Can be resubmitted. Submissions In this order: printed copy of...
Hey everyone, I need help making a function with this directions
with C++ Language.
Can you guys use code like printf and fscanf without iostream or
fstream because i havent study that yet.
Thanks.
Directions: Write a function declaration and definition for the char* function allocCat. This function should take in as a parameter a const Words pointer (Words is a defined struct) The function should allocate exactly enough memory for the concatenation of all of the strings in the...
can you please follow all the instructions ? The answers that I got has either missing range for loop or one funtion . Read the instructions carefully. At least 10% will be deducted if the instructions are not followed. For general lab requirements, see General Lab Requirements. Do not prompt the user for input during the execution of your program. Do not pause at the end of the execution waiting for the user's input. Notes 1. Your program should use...
Hello! I'm posting this program that is partially completed if someone can help me out, I will give you a good rating! Thanks, // You are given a partially completed program that creates a list of employees, like employees' record. // Each record has this information: employee's name, supervisors's name, department of the employee, room number. // The struct 'employeeRecord' holds information of one employee. Department is enum type. // An array of structs called 'list' is made to hold...
I only need the "functions" NOT the header file nor the main
implementation file JUST the implementations for the
functions
Please help, if its difficult to do the complete program I would
appreciate if you could do as much functions as you can especially
for the derived class.
I am a beginer so I am only using classes and pointers while
implementing everything using simple c++ commands
thank you in advanced
Design and implement two C++ classes to provide matrix...
Using Merge Sort: (In Java) (Please screenshot or copy your output file in the answer) In this project, we combine the concepts of Recursion and Merge Sorting. Please note that the focus of this project is on Merging and don't forget the following constraint: Programming Steps: 1) Create a class called Art that implements Comparable interface. 2) Read part of the file and use Merge Sort to sort the array of Art and then write them to a file. 3)...
Reading and parsing a CSV data file in java
Note:
I.) the first row contains the field definition
II.) Columns are separated by comma
This is the data.csv file
These are the instructions
This is my code so far
A D F G H J K 1 FirstName LastName DateOfBirth SSN Role Salary Zip Phone 2 Radioactive Man BMockingbird 4Captain Triumph 5 Deathstroke, th Chief garlic 9/29/1912 846330158 Administration 39157 7166875260 69989 persimmon 9/22/1956 835340509 Administration 13884 39157 1421813391 usb...
Reading and parsing a CSV data file in java
Note:
I.) the first row contains the field definition
II.) Columns are separated by comma
This is the data.csv file
These are the instructions
This is my code so far
A D F G H J K 1 FirstName LastName DateOfBirth SSN Role Salary Zip Phone 2 Radioactive Man BMockingbird 4Captain Triumph 5 Deathstroke, th Chief garlic 9/29/1912 846330158 Administration 39157 7166875260 69989 persimmon 9/22/1956 835340509 Administration 13884 39157 1421813391 usb...
Reading and parsing a CSV file in Java
NOTE:
a.) The first row contains the field definition
b.) Columns are separated by comma
This is the data.csv file
These are the coding instructions. Questions 1,2 and 3
This is my code so far
FirstName Radioactive Man LastName DateOfBirth SSN Salary Role Zip Phone garlic 9/29/1912 846330158 Administration 69989 39157 7166875260 Mockingbird Captain Triumph Deathstroke, th persimmon 9/22/1956 835340509 Administration 13884 39157 1421813391 usb 7/19/1940 8/8/1970 979204716 Back Office 75710 39157...