gedcom

Reading a line from a streamreader without consuming?

北城以北 提交于 2019-12-03 06:44:16
问题 Is there a way to read ahead one line to test if the next line contains specific tag data? I'm dealing with a format that has a start tag but no end tag. I would like to read a line add it to a structure then test the line below to make sure it not a new "node" and if it isn't keep adding if it is close off that struct and make a new one the only solution i can think of is to have two stream readers going at the same time kinda suffling there way along lock step but that seems wastefull (if

Reading a line from a streamreader without consuming?

▼魔方 西西 提交于 2019-12-02 20:23:23
Is there a way to read ahead one line to test if the next line contains specific tag data? I'm dealing with a format that has a start tag but no end tag. I would like to read a line add it to a structure then test the line below to make sure it not a new "node" and if it isn't keep adding if it is close off that struct and make a new one the only solution i can think of is to have two stream readers going at the same time kinda suffling there way along lock step but that seems wastefull (if it will even work) i need something like peek but peekline The problem is the underlying stream may not

Response.TransmitFile and delete it after transmission

你离开我真会死。 提交于 2019-12-01 03:47:08
I have to implement GEDCOM export in my site. My .net code created one file at server when export to gedcom clicked. Then I need to download it to client from server, as well as user should be asked where to save that file, meaning savedialog is required. After it's downloaded, I want to delete that file from server. I got one code to transmit file from server to client: Response.ContentType = "text/xml"; Response.AppendHeader("Content-Disposition", "attachment; filename=" + FileName); Response.TransmitFile(Server.MapPath("~/" + FileName)); Response.End(); from this LINK but I am not able to

Response.TransmitFile and delete it after transmission

让人想犯罪 __ 提交于 2019-12-01 00:39:04
问题 I have to implement GEDCOM export in my site. My .net code created one file at server when export to gedcom clicked. Then I need to download it to client from server, as well as user should be asked where to save that file, meaning savedialog is required. After it's downloaded, I want to delete that file from server. I got one code to transmit file from server to client: Response.ContentType = "text/xml"; Response.AppendHeader("Content-Disposition", "attachment; filename=" + FileName);

Gedcom Reader for C#

元气小坏坏 提交于 2019-11-30 13:03:28
问题 Does anyone know of a good class to read in .ged files Gedcom is a file format that is used to store genealogical information. My goal is to write something that would let me import a ged file and export a .dot file for graphviz so that I can make a visual representation of a family tree thanks if you can help 回答1: Heres my best attempt so far. It seems to be working for what i need though its defiently not full proof ( then again my family tree is rather large and that adds some complexity)

Gedcom Reader for C#

本秂侑毒 提交于 2019-11-30 05:21:46
Does anyone know of a good class to read in .ged files Gedcom is a file format that is used to store genealogical information. My goal is to write something that would let me import a ged file and export a .dot file for graphviz so that I can make a visual representation of a family tree thanks if you can help Heres my best attempt so far. It seems to be working for what i need though its defiently not full proof ( then again my family tree is rather large and that adds some complexity) please let me know if you think i could make anything more elequient struct INDI { public string ID; public