MCPcopy Create free account
hub / github.com/AngusJohnson/Clipper2 / SaveBackup

Method SaveBackup

CSharp/Examples/RectClip/Main.cs:32–47  ·  view source on GitHub ↗
(string filename, Paths64 sub, Paths64 clp)

Source from the content-addressed store, hash-verified

30 }
31
32 public static bool SaveBackup(string filename, Paths64 sub, Paths64 clp)
33 {
34 StreamWriter writer;
35 try
36 { writer = new StreamWriter(filename, false); }
37 catch { return false; }
38
39 foreach (Point64 pt in sub[0])
40 writer.Write("{0},{1} ", pt.X, pt.Y);
41 writer.Write("\r\n");
42 foreach (Point64 pt in clp[0])
43 writer.Write("{0},{1} ", pt.X, pt.Y);
44 writer.Write("\r\n");
45 writer.Close();
46 return true;
47 }
48
49 public static bool RestoreBackup(string filename, out Paths64 sub, out Paths64 clp)
50 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected