CPP sample file
cpp_sample_file_500KB.cpp
500.0 KB
text/x-c++src
SHA256 verified
File details
Filename
cpp_sample_file_500KB.cppSize500.0 KB (512010 bytes)
MIME type
text/x-c++srcExtension
.cppSHA256
da4d5706a1d364fd19bbfcc9b6af07a3df0a84d712ffc072a7ccfc5853dec0d3Download commands
Use in scripts and tests
curl -L -o cpp_sample_file_500KB.cpp \
https://samplefile.com/samples/download/code/cpp/cpp_sample_file_500KB.cpp/
wget -O cpp_sample_file_500KB.cpp \
https://samplefile.com/samples/download/code/cpp/cpp_sample_file_500KB.cpp/
import requests
url = "https://samplefile.com/samples/download/code/cpp/cpp_sample_file_500KB.cpp/"
resp = requests.get(url)
with open("cpp_sample_file_500KB.cpp", "wb") as f:
f.write(resp.content)
const resp = await fetch("https://samplefile.com/samples/download/code/cpp/cpp_sample_file_500KB.cpp/");
const buf = Buffer.from(await resp.arrayBuffer());
require("fs").writeFileSync("cpp_sample_file_500KB.cpp", buf);
# Download and verify SHA256
curl -L -o cpp_sample_file_500KB.cpp https://samplefile.com/samples/download/code/cpp/cpp_sample_file_500KB.cpp/
echo "da4d5706a1d364fd19bbfcc9b6af07a3df0a84d712ffc072a7ccfc5853dec0d3 cpp_sample_file_500KB.cpp" | shasum -a 256 -c
# Python
import hashlib, requests
data = requests.get("https://samplefile.com/samples/download/code/cpp/cpp_sample_file_500KB.cpp/").content
assert hashlib.sha256(data).hexdigest() == "da4d5706a1d364fd19bbfcc9b6af07a3df0a84d712ffc072a7ccfc5853dec0d3"
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_50KB.cpp |
50.0 KB | 9abf9b457a62d2b3… |
Download |
Learn more