What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

[Request] File export

Ferrox

New Member
Joined
Nov 2, 2014
Messages
3
Reaction score
0
Hi guys,

i would like to read Guild infos like name, rank and such and write it into a file (excel file would be best).
Is there any easy way to do it?
Seen some API calls for Guild infos but the export into a file bothers me.
 
Code:
public void Save_Logs()
		{			
			try
			{
			string patp = @Application.StartupPath+"\\Plugins\\"+pluginPath.Split('[','\\')[1]+"\\Log_"+serverName()+"_"+DateTime.Now.ToString("yyyy/MM/dd")+".txt";

				using (StreamWriter writer = new StreamWriter(patp, true))
				{
					foreach (string txt in /*YOU DATA*/)
					{
						writer.WriteLine(txt);
					}
				}
				return;
			}
			catch (Exception e)
			{
				MessageBox.Show("Fail: "+e);
				return;
			}
		}
 
Last edited:
Back
Top