Hello Programmers, 
Im working on a Open Source scoring&ranking system and needs help with creating/deleting a text line as example INSIDE a file.
Ive allready got the code for creating an file:
Its this one:
===========================================
My Setups:
                                                                            
Language: C#
Database: txt (soon sql)
Microsoft Visual C# 2008 Express Version SP1
Libary: LFS_External 1.1.1.4
===========================================
I will be very happy if someone can help me.
And the Community will be happy to if i can fish my open source Ranking&Scoring system
Regards Grinch
  
                
            
Im working on a Open Source scoring&ranking system and needs help with creating/deleting a text line as example INSIDE a file.
Ive allready got the code for creating an file:
Its this one:
                case "!setadmin":
                    if (StrMsg.Length > 1)
                    {
                        if (Connections[GetConnIdx(MSO.UCID)].IsAdmin == 1)
                        {
                            if (Connections[GetConnIdx(MSO.UCID)].InsimAdmin == 0)
                            {
                                StreamReader ApR = new StreamReader(UserBase + "\\groups\\Admin.txt");
                                string TempAPR = ApR.ReadToEnd();
                                ApR.Close();
                                StreamWriter Ap = new StreamWriter(Base + "\\groups\\Admin.txt");
                                Ap.WriteLine(TempAPR + "Admin = " + Msg.Remove(0, 10));
                                Ap.Flush();
                                Ap.Close();
                                foreach (clsConnection C in Connections)
                                {
                                    if (C.Username == Msg.Remove(0, 10))
                                    {
                                        C.Admin = 1;
                                        InSim.Send_MST_Message("/msg ^7 " + C.PlayerName + "^7 got Admin rights!");
                                    }
                                }
                            }
                            else
                            {
                                InSim.Send_MTC_MessageToConnection("^1Warning:^7 This user is already a Admin!", MSO.UCID, 0);
                            }
                        }
                    }
                    else
                    {
                        InSim.Send_MTC_MessageToConnection("^1Command Error. Please try again", MSO.UCID, 0);
                    }
                    break;===========================================
My Setups:
Language: C#
Database: txt (soon sql)
Microsoft Visual C# 2008 Express Version SP1
Libary: LFS_External 1.1.1.4
===========================================
I will be very happy if someone can help me.
And the Community will be happy to if i can fish my open source Ranking&Scoring system

Regards Grinch



