Hello everyone,

I want to put my string[] (array uni dimensional) of values in to excel row and every time the first number of this array was different of "500", the program will add another row with the values on the excel sheet.

I only have on the program to system reads a file and next save it to an array, show to user the values, create a workbook and sheet without anything and just this.

Workbook machine = new Workbook();
machine.LoadFromFile(@"..excel.xls");
Worksheet sheet = machine.Worksheets[0];

string[] numbers = System.IO.File.ReadAllLines(@"..txt.txt");

for (int i = 0; i < numbers.Length; i++)
{
    Console.WriteLine(numbers[i]);
}       

Can you help me please?
xxText

Here's a good tutorial with information that will help you to do that.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.