Wednesday, January 29, 2020

CPP: Read file using ifstream



To build:
$: clang++ ifstream.cpp

Generate a file to read:
$: echo "hello world" > file.txt

Run it:
$: ./a.out

No comments:

Error opening directory '/media/sf_C_DRIVE': Permission denied

I tried to share a folder from Windows 10 host to Kali 2020.1 Linux guest using VirtualBox but I am getting the following error message: ...