public static MiniDestination miniDestinationFromBlob(string containerName, string blobName) { StreamReader input = new StreamReader(BlobLibrary.getBlobReadStream(containerName, blobName)); MiniDestination toreturn = miniDestinationFromStream(input); input.Close(); return(toreturn); }
public static void SToBlob(bool[] S, string containerName, string blobName) { StreamWriter output = new StreamWriter(BlobLibrary.getBlobWriteStream(containerName, blobName)); for (int i = 0; i < S.Length; i++) { output.Write(S[i] + " "); } output.Write("\n"); output.Close(); }
public static bool[] SFromBlob(string containerName, string blobName) { StreamReader input = new StreamReader(BlobLibrary.getBlobReadStream(containerName, blobName)); string[] pieces = input.ReadLine().Split(space, StringSplitOptions.RemoveEmptyEntries); bool[] toreturn = new bool[pieces.Length]; for (int i = 0; i < pieces.Length; i++) { toreturn[i] = bool.Parse(pieces[i]); } input.Close(); return(toreturn); }