Changeset 8530 for trunk/sources/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Clustering/CSV/ClusteringCSVInstanceProvider.cs
- Timestamp:
- 08/28/12 11:48:05 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Clustering/CSV/ClusteringCSVInstanceProvider.cs
r8211 r8530 22 22 using System; 23 23 using System.Collections.Generic; 24 using System.Globalization; 24 25 using System.IO; 25 26 using System.Text; … … 85 86 86 87 foreach (var variable in instance.InputVariables) { 87 strBuilder.Append(variable + ";");88 strBuilder.Append(variable + CultureInfo.CurrentCulture.TextInfo.ListSeparator); 88 89 } 89 strBuilder.Remove(strBuilder.Length - 1, 1);90 strBuilder.Remove(strBuilder.Length - CultureInfo.CurrentCulture.TextInfo.ListSeparator.Length, CultureInfo.CurrentCulture.TextInfo.ListSeparator.Length); 90 91 strBuilder.AppendLine(); 91 92 … … 94 95 for (int i = 0; i < dataset.Rows; i++) { 95 96 for (int j = 0; j < dataset.Columns; j++) { 96 strBuilder.Append(dataset.GetValue(i, j) + ";"); 97 if (j > 0) strBuilder.Append(CultureInfo.CurrentCulture.TextInfo.ListSeparator); 98 strBuilder.Append(dataset.GetValue(i, j)); 97 99 } 98 strBuilder.Remove(strBuilder.Length - 1, 1);99 100 strBuilder.AppendLine(); 100 101 }
Note: See TracChangeset
for help on using the changeset viewer.