codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
char * sendfile = "C:\\STOL.jpg"; FILE *fin; fin = fopen(sendfile, "rb"); long size; fseek(fin, 0, SEEK_END); size = ftell(fin); fseek(fin, 0, SEEK_SET); char * buf=(char *)malloc(size); fread(buf,size,100500,fin); fclose(fin); cout << buf;
Private
[
?
]
Run code
Submit