Popravil fileDevice.cpp tako da dejansko naredi datoteke, če še ne obstajajo

This commit is contained in:
Timon 2025-12-01 13:37:24 +01:00
parent 8222f8dd0a
commit 74cc571eef
270 changed files with 104 additions and 74 deletions

13
ass2/headers/fileDevice.h Normal file
View file

@ -0,0 +1,13 @@
#pragma once
#include <fstream>
#include "device.h"
class fileDevice : public Device{
private:
std::fstream file;
public:
fileDevice(const std::string& fileName);
uint8_t read() override;
void write(uint8_t val) override;
bool test() override;
};