I have the following routine, Match result = regex.Match(rule); Match mat = payload.Match(rule); // Console.WriteLine( result.Groups["alert"].Value + "," + result.Groups["proto"].Value + "," + result.Groups["sip"].Value + "," + result.Groups["sport"].Value + "," + result.Groups["direc"].Value + "," + result.Groups["dest"].Value + "," + result.Groups["dport"].Value + "," + mat.Groups["pl"].Value ); sw.WriteLine( result.Groups["alert"].Value + "," + result.Groups["proto"].Value + "," + result.Groups["sip"].Value + "," + result.Groups["sport"].Value + "," + result.Groups["direc"].Value + "," + result.Groups["dest"].Value + "," + result.Groups["dport"].Value + "," + mat.Groups["pl"].Value );
sw.Close(); When i use just Console.WriteLine, it will display the whole file, but when i use the StreamWriter (sw.WriteLine) it only write the last line of the file. I have tried many different combinations and still nothing it either writes a single line, or it reapts the same line creating a huge, megabyte file. -- View this message in context: http://mono.1490590.n4.nabble.com/Not-writing-all-of-the-data-to-file-tp3176369p3176369.html Sent from the Mono - General mailing list archive at Nabble.com. _______________________________________________ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list