CPP sample file
cpp_sample_file_50KB.cpp
50.0 KB
text/x-c++src
SHA256 verified
File details
Filename
cpp_sample_file_50KB.cppSize50.0 KB (51210 bytes)
MIME type
text/x-c++srcExtension
.cppSHA256
9abf9b457a62d2b366cd126116cdc4dbb851c15e4e90dd39d58cba04d2f6ada3Download commands
Use in scripts and tests
curl -L -o cpp_sample_file_50KB.cpp \
https://samplefile.com/samples/download/code/cpp/cpp_sample_file_50KB.cpp/
wget -O cpp_sample_file_50KB.cpp \
https://samplefile.com/samples/download/code/cpp/cpp_sample_file_50KB.cpp/
import requests
url = "https://samplefile.com/samples/download/code/cpp/cpp_sample_file_50KB.cpp/"
resp = requests.get(url)
with open("cpp_sample_file_50KB.cpp", "wb") as f:
f.write(resp.content)
const resp = await fetch("https://samplefile.com/samples/download/code/cpp/cpp_sample_file_50KB.cpp/");
const buf = Buffer.from(await resp.arrayBuffer());
require("fs").writeFileSync("cpp_sample_file_50KB.cpp", buf);
# Download and verify SHA256
curl -L -o cpp_sample_file_50KB.cpp https://samplefile.com/samples/download/code/cpp/cpp_sample_file_50KB.cpp/
echo "9abf9b457a62d2b366cd126116cdc4dbb851c15e4e90dd39d58cba04d2f6ada3 cpp_sample_file_50KB.cpp" | shasum -a 256 -c
# Python
import hashlib, requests
data = requests.get("https://samplefile.com/samples/download/code/cpp/cpp_sample_file_50KB.cpp/").content
assert hashlib.sha256(data).hexdigest() == "9abf9b457a62d2b366cd126116cdc4dbb851c15e4e90dd39d58cba04d2f6ada3"
More CPP files
Other CPP Sample Files
| Filename | Size | SHA256 | Download |
|---|---|---|---|
cpp_sample_file_1MB.cpp |
1.0 MB | 4ae8e9510c22a8a6… |
Download |
cpp_sample_file_200KB.cpp |
200.0 KB | e435917c94c8012b… |
Download |
cpp_sample_file_500KB.cpp |
500.0 KB | da4d5706a1d364fd… |
Download |
Learn more