Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Read Resources


  • Please log in to reply
8 replies to this topic

#1 spinter

spinter

    Member

  • Members
  • PipPip
  • 13 posts

Posted 11 October 2011 - 05:10 PM

How can I read a string o file.txt in the resources? You can do this?

#2 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 11 October 2011 - 05:30 PM

Hi Sprinter, I'm not sure if I understand you correctly, but do you want to store a file.txt onto an SD card and read that from VB.NET?
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#3 spinter

spinter

    Member

  • Members
  • PipPip
  • 13 posts

Posted 11 October 2011 - 06:26 PM

Hi Sprinter,

I'm not sure if I understand you correctly, but do you want to store a file.txt onto an SD card and read that from VB.NET?

Thanks!
I wanted to copy a txt file to the sd
Or the resources to sd
I hope you understand me!

#4 spinter

spinter

    Member

  • Members
  • PipPip
  • 13 posts

Posted 11 October 2011 - 06:27 PM

Ps: I can create it again in SD, but I wanted to copy an already written!

#5 spinter

spinter

    Member

  • Members
  • PipPip
  • 13 posts

Posted 12 October 2011 - 07:26 PM

none?

#6 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 13 October 2011 - 06:04 AM

You want to copy or append? Appending an existing text file is possible. Can you post the code for writing? Then I'll modify it for appending :)
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#7 spinter

spinter

    Member

  • Members
  • PipPip
  • 13 posts

Posted 13 October 2011 - 05:03 PM

You want to copy or append? Appending an existing text file is possible. Can you post the code for writing? Then I'll modify it for appending :)



I want to do a project to bring the files into sdcard without needing to use a usb readder.

example 1:

Dim myFile As String = Application.StartupPath & "\Myfile.txt"
or
Dim myFile As String = "c:\Myfile.txt"
Dim fs As System.IO.FileStream = New System.IO.FileStream(myFile, IO.FileMode.Create)
Write("\SD\Myfile.txt", 0, My.Myfile.txt.Length)

example 2:



Copy file to c:\ to SDCARD!


I hope you understand me

#8 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 13 October 2011 - 06:47 PM

Ohh but from your Netduino you can't access you C: drive on your PC; it's not connected. You can read/write/append/remove to the SD card, but not to the PC. Is that what you ment?
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#9 spinter

spinter

    Member

  • Members
  • PipPip
  • 13 posts

Posted 13 October 2011 - 08:35 PM

Ohh but from your Netduino you can't access you C: drive on your PC; it's not connected.

You can read/write/append/remove to the SD card, but not to the PC. Is that what you ment?


Ok

resources from vb?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.