From 0218c678e13e1cb94a352c91733cea68467dc566 Mon Sep 17 00:00:00 2001 From: Angeld55 Date: Sun, 14 Feb 2021 23:06:35 +0200 Subject: start from scratch --- Binary_files/SaveStructsToBinaryFile.cpp | 40 -------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 Binary_files/SaveStructsToBinaryFile.cpp (limited to 'Binary_files/SaveStructsToBinaryFile.cpp') diff --git a/Binary_files/SaveStructsToBinaryFile.cpp b/Binary_files/SaveStructsToBinaryFile.cpp deleted file mode 100644 index 3caad14..0000000 --- a/Binary_files/SaveStructsToBinaryFile.cpp +++ /dev/null @@ -1,40 +0,0 @@ -#include -#include -using namespace std; - -struct test -{ - char ch; - int num; -}; - -int main() -{ - - test obj1{ 'a', 4 }; - test obj2{ 'b', 5 }; - test obj3{ 'c', 6 }; - - ofstream outF("Structs.bat", ios::binary); - - if (!outF.is_open()) - { - cout << "Error while opening file"<