Your technology certification is waiting. Enroll in Cloud Class ®
static void Main(string args)
string data = "Hello World!";
// Create file to save the data to
FileStream fs = new FileStream(@"D:\Zodes\Serialized.Data", FileMode.Create);
// Create a BinaryFormatter object to perform the serialization
// Specifically for the client having .NET Application
BinaryFormatter bf = new BinaryFormatter();
// Use the BinaryFormatter object to serialize the data to the file
// Close the file
Open in new window
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
Your question, your audience. Choose who sees your identity—and your question—with question security.