2
Answers

C# console application IO

i have one folder in that 23 .txt file i want to get 15 to 22  files name and into files this way data so many lines "2014-09-01 00:00:01,500 [INFO] - Send List Count: 160. OK!" so i want that 160 numbers  count in console application 
result :
 
filename(date)  count
 
2014-09-01       35086
2014-09-02       64589
.
.
.
2014-09-15      answer 
.
.
2014-09-22     answer 
 
plzz help me ????  

Answers (2)

0
Photo of Dipika
NA 1.2k 14.6k 7y
my task is to upload file with updated version 6th step of following url
 
https://developer.autodesk.com/en/docs/data/v2/tutorials/upload-file/ 
0
Photo of Mitesh Gadhiya
NA 305 11.1k 7y
  1. var url = "API URL";  
  2. var jsonData = "[{...json data...}]";  
  3.   
  4. using (var client = new WebClient())  
  5. {  
  6.     client.Headers.Add("content-type""application/json");  
  7.     var response = client.UploadString(url, jsonData);  
 Try this
0
Photo of Dipika
NA 1.2k 14.6k 7y
I have to integrate this 
https://developer.autodesk.com/en/docs/data/v2/reference/http/projects-project_id-versions-POST/ 
0
Photo of Dipika
NA 1.2k 14.6k 7y
What should i pass in query string or in request.AddHeader
0
Photo of Mitesh Gadhiya
NA 305 11.1k 7y
Please have a look at below thread it might be helpful to you:
 
https://stackoverflow.com/questions/7929013/making-a-curl-call-in-c-sharp