I'm not sure the VB forum is the appropriate place for this question, but where to put C# ones does seem to be a bit of an issue at present.
I'm just an old VB6 developer. But I wonder, isn't it possible that the data written to the file is OK, but simply not in a conveniently human-readable format? Have you tried reading it back into your array to see what you get?
Thank you Killer for your help. yes i've tried to read the file after saving it, but nothing happens. i.e. the code does not seem to do anything. it neither opens the file nor reads it. here is the code i used:
StreamReader reader = new StreamReader( my-file-name );
string data = reader.ReadToEnd ();
reader.Close();
I tried to use another command for writing the data and the output was:
System.UInt16[]
which i don't know what it means. (sorry but i am not a computer science major)