数据从CSV文件加载到C#应用程序 [英] Data loading from CSV file to C# application

查看:71
本文介绍了数据从CSV文件加载到C#应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在开发一个C#自动化应用程序,它根据图像ID从Web服务器下载图像。

我从csv文件中获取Id 。现在我的问题是,如果在互联网或服务器之间下降,所以如果我重新启动应用程序应用程序应从下载的图像的最后一个ID开始下载。





感谢所有



我尝试过:



在C#中开发自动化应用程序,下载图像

Hi All,
I am developing an automation application in C# which downloaded images from web server according to the image Id.
I am getting the Id from csv file. now my question is if in between the internet or the server get down, so if I restart application the application should download start from the last Id of the Image downloaded.


Thank to All

What I have tried:

developing an automation application in C# which downloaded images

推荐答案

只需跟踪你的位置并将其保存到磁盘,并在重新启动时读取值并从那里开始。
Just keep track of where you were and save that to disk, and on restart read the value and start from there.


这篇关于数据从CSV文件加载到C#应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆