| | |
RemoveEmptyEntries Error
Please support our C# advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Jan 2009
Posts: 68
Reputation:
Solved Threads: 0
Getting the following error Error
'System.StringSplitOptions' does not contain a definition for 'RemoveEmptyEntires'
string[] lines = File.ReadAllLines(fileName);
char[] delim = new char[1];
delim[0] = ' ';
foreach (string line in lines)
{
if (line != string.Empty)
{
string[] words = line.Split(delim, StringSplitOptions.RemoveEmptyEntires);
// here you've got all your words in that array. Do what you want with them
foreach (string word in words)
{
MessageBox.Show(" zp! ");
}
}
}
}
'System.StringSplitOptions' does not contain a definition for 'RemoveEmptyEntires'
string[] lines = File.ReadAllLines(fileName);
char[] delim = new char[1];
delim[0] = ' ';
foreach (string line in lines)
{
if (line != string.Empty)
{
string[] words = line.Split(delim, StringSplitOptions.RemoveEmptyEntires);
// here you've got all your words in that array. Do what you want with them
foreach (string word in words)
{
MessageBox.Show(" zp! ");
}
}
}
}
![]() |
Similar Threads
- Receiving Data w/ C# (C#)
Other Threads in the C# Forum
- Previous Thread: Windows Event Logs
- Next Thread: Copying a File to a specific Directory on multiple Computers
| Thread Tools | Search this Thread |
Tag cloud for C#
.net access ado.net algorithm array barchart bitmap box broadcast buttons c# chat check checkbox class client color combobox control conversion csharp custom database datagrid datagridview dataset datetime degrees development draganddrop drawing encryption event excel file files form format forms function gdi+ httpwebrequest image index input install java label list listbox listener login mandelbrot math mouseclick mysql networking object operator path photoshop picturebox pixelinversion post prime programming radians regex remote remoting resource richtextbox save saving serialization server sleep socket sql statistics stream string table tcp text textbox thread time timer treeview update usercontrol validation view visualstudio webbrowser windows winforms wpf xml






