Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/sharepoint/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
File 在C语言中读取单个文件_File_Curl - Fatal编程技术网

File 在C语言中读取单个文件

File 在C语言中读取单个文件,file,curl,File,Curl,我想做的是,从一个文件中读取一个像“1234567890”这样的数字字符串,并将其与curl一起发送到服务器。我希望能找到像这样的东西 token = readfile (myfile) curl\"http://myserver.com/token/whatever 但它似乎没有那么容易curl--data“@/path/to/filename”http://...为什么要将其标记为“C”?

我想做的是,从一个文件中读取一个像“1234567890”这样的数字字符串,并将其与curl一起发送到服务器。我希望能找到像这样的东西

token = readfile (myfile)

curl\"http://myserver.com/token/whatever
但它似乎没有那么容易

curl--data“@/path/to/filename”http://...
为什么要将其标记为“C”?