SD card read issue

Ok, so im working to read back from an SD card saved file. The file opens fine and starts to read fine but then goes haywire.

File Test_File= SD.open("test.csv"); //open file without write privileges

while (Test_File.available() > 0 && mode_string == "Playback") // Read file until end and
{
int input_Char = Test_File.read(); //read one character
if (input_Char != '\n') //if character isnt new line
{
if (input_Char != ';') //if character is not a comma, as this is the delimiter
{
delay(Read_speed);
Serial.println(input_Char); //put in for testing to ensure that the correct char is inputted
input_String[number] += input_Char; // As long as the incoming bytes are not a newline or a comma, add to string
}
else
{
number += 1; //end of the first reading was received per the comma, increment the array to store next reading.
delay(Read_speed); //used to troubleshoot
}

The csv file has the following:

Test1;
Test2;
Test3;Test4
Test5;Test6

This seems to work until the end of the first read line. Then i get a bunch of garbage.

Any help would be nice.

Thanks in advance.

     int input_Char = Test_File.read();

The variable is NOT a char, so char should NOT be part of the name. You wouldn't create a variable of type float called myInt would you?

    input_String[number] += input_Char;    // As long as the incoming bytes are not a newline or a comma, add to string

That is NOT how you add a character to a string. It IS how you add a character to a String. String and string are NOT the same thing.

The comment is wrong, too, in that it is semicolons, not commas, that are skipped.

It is impossible to tell from your snippet how much memory you are wasting. Strings are a bad idea on the Arduino. Arrays of Strings compound that badness.

Thanks for your reply. How would you accomplish, reading from an SD card line by line and each line would consist of two numbers that each will need to be placed into its unique variable? Im open to suggestions.