Share via


Is it possible to Get data from a text file on google drive?

Question

Sunday, October 30, 2016 9:54 PM

Hi there,

I am a self thought programmer for the past few years using unity and I have started branching into software development with c# and c++.

Is it possible to get data from a text file from my google drive and display it in a text box inside of a c# Windows Form Application?

If someone has any information or can help me please do :)

Thank you so much in advance!

All replies (4)

Monday, October 31, 2016 1:18 AM

I would think that all you have to do is set up the Windows O/S to map a drive letter to the skydive via UNC possibly through File Explorer to the location where the file is located.

The you can write a program to open any file accessible via the drive letter.


Monday, October 31, 2016 6:00 AM

Hi SD2020_,

>>Is it possible to get data from a text file from my google drive and display it in a text box inside of a c# Windows Form Application?

From above message, your case more related to Google drive. As far as I know, you can achieve it using google drive API, for more details, please refer to the following links.

https://developers.google.com/drive/

https://developers.google.com/drive/v2/reference/

Best regards,

Kristin

MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected].


Monday, November 21, 2016 10:27 PM

I believe you need the Google Drive API for this.

http://www.daimto.com/google-drive-api-c/

http://www.daimto.com/google-drive-api-c-upload/

MY BOOK


Monday, November 21, 2016 11:31 PM

As other said, it is done with REST APIs (C# sample)

All Clouds work with REST Apis.

I tested them in C/C++ by sending requests with WinHttp APIs;

the simplest one is pCloud, because automatic Authentication (Authentication Token) is easier than with One Drive or Google Drive.