Skip to content

Commit

Permalink
Updated Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ignis-sec committed Feb 23, 2018
1 parent 8d26032 commit 66ce29a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Brainfuck Interpreter (CLR)/Brainfuck Interpreter/File.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <Windows.h>
#include <Shobjidl.h>

std::ifstream* LoadFile()
std::ifstream* LoadFile() //this function constructs file load dialog
{

std::ifstream *file;
Expand Down Expand Up @@ -44,12 +44,12 @@ std::ifstream* LoadFile()
pFile->Release();
CoUninitialize();
if (pszFilePath != nullptr)
return file;
return file; //returns selected files path/name
else return NULL;
}


std::ofstream* SaveFile() {
std::ofstream* SaveFile() {//this function constructs file save dialog

std::ofstream *file;
file = new std::ofstream();
Expand All @@ -65,7 +65,7 @@ std::ofstream* SaveFile() {
{
COMDLG_FILTERSPEC rgSpec[] =
{
{ L"Brainfuck file", L"*.bf" },
{ L"Brainfuck file", L"*.bf" }, //filter for file types
{ L"All Files", L"*.*" },
};
// Show the Open dialog box.
Expand Down

0 comments on commit 66ce29a

Please sign in to comment.