Skip to main content
Active reading [<https://en.wiktionary.org/wiki/what's#Contraction> <https://en.wikipedia.org/wiki/JSON> <https://en.wiktionary.org/wiki/platform#Noun>] - but more could be done near "probably your case export" (it seems incomprehensible). Fixed the indentation.
Source Link
Peter Mortensen
  • 31.4k
  • 22
  • 110
  • 134

If they are not very big, whatswhat's probably your case export it as JsonJSON. Also

Also this makes it portable among all plattformsplatforms.

 using Newtonsoft.Json;    [TestMethod]  public void ExportJson()  {   double[,] b = new double[,]  { { 110,  120,  130,  140, 150 }, { 1110, 1120, 1130, 1140, 1150 }, { 1000,  1, 5  5, 9, 1000}, {1110,  2, 6  6, 10, 1110}, {1220,  3, 7  7, 11, 1220}, {1330,  4, 8  8, 12,1330} 1330};    };  string jsonStr = JsonConvert.SerializeObject(b);   Console.WriteLine(jsonStr);   string path = "X:\\Programming\\workspaceEclipse\\PyTutorials\\src\\tensorflow_tutorials\\export.txt";   File.WriteAllText(path, jsonStr);  } 

If they are not very big, whats probably your case export it as Json. Also this makes portable among all plattforms

 using Newtonsoft.Json;  [TestMethod]  public void ExportJson()  {   double[,] b = new double[,] { { 110, 120, 130, 140, 150 }, { 1110, 1120, 1130, 1140, 1150 }, { 1000, 1, 5 ,9, 1000}, {1110, 2, 6 ,10,1110}, {1220, 3, 7 ,11,1220}, {1330, 4, 8 ,12,1330} };  string jsonStr = JsonConvert.SerializeObject(b);   Console.WriteLine(jsonStr);   string path = "X:\\Programming\\workspaceEclipse\\PyTutorials\\src\\tensorflow_tutorials\\export.txt";   File.WriteAllText(path, jsonStr);  } 

If they are not very big, what's probably your case export it as JSON.

Also this makes it portable among all platforms.

using Newtonsoft.Json;   [TestMethod] public void ExportJson() { double[,] b = new double[,]  { { 110,  120,  130,  140, 150 }, {1110, 1120, 1130, 1140, 1150}, {1000,  1,   5, 9, 1000}, {1110,  2,   6, 10, 1110}, {1220,  3,   7, 11, 1220}, {1330,  4,   8, 12, 1330}   };  string jsonStr = JsonConvert.SerializeObject(b); Console.WriteLine(jsonStr); string path = "X:\\Programming\\workspaceEclipse\\PyTutorials\\src\\tensorflow_tutorials\\export.txt"; File.WriteAllText(path, jsonStr); } 
Source Link
user8426627
  • 953
  • 1
  • 11
  • 19

If they are not very big, whats probably your case export it as Json. Also this makes portable among all plattforms

 using Newtonsoft.Json; [TestMethod] public void ExportJson() { double[,] b = new double[,] { { 110, 120, 130, 140, 150 }, { 1110, 1120, 1130, 1140, 1150 }, { 1000, 1, 5 ,9, 1000}, {1110, 2, 6 ,10,1110}, {1220, 3, 7 ,11,1220}, {1330, 4, 8 ,12,1330} }; string jsonStr = JsonConvert.SerializeObject(b); Console.WriteLine(jsonStr); string path = "X:\\Programming\\workspaceEclipse\\PyTutorials\\src\\tensorflow_tutorials\\export.txt"; File.WriteAllText(path, jsonStr); }