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