Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Write Data to Linux

Write Data to Linux

Scheduled Pinned Locked Moved C#
csharplinuxhelpquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    yuvachandra
    wrote on last edited by
    #1

    HI all, Is there a way to write data(text data) to Linux directory using C#? or Help me with establishing connectivity with Linux using C# code. Regards, Yuva

    L J 2 Replies Last reply
    0
    • Y yuvachandra

      HI all, Is there a way to write data(text data) to Linux directory using C#? or Help me with establishing connectivity with Linux using C# code. Regards, Yuva

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      yuvachandra wrote:

      Is there a way to write data(text data) to Linux directory using C#?

      Works the same as if you were writing to a Windows file. Will you be writing on the local PC (ie, running C# on that Linux-machine) or from a remote machine? Simplest way is to install Mono; you can use the usual classes from System.IO to write to the local filesystem. If you're running on Windows and want to write to Linux, easiest way is to have a small app running on the Linux-machine and have the Win-App talk to that over TCP/IP. The cleanest way would be using Samba - if you can install that on the Linux machine, you could map a drive to your Windows host. So, in short; - Write local or remote? - Write from Linux or Windows? - Is Mono or Samba installed?

      Bastard Programmer from Hell :suss: if you can't read my code, try converting it here[^]

      1 Reply Last reply
      0
      • Y yuvachandra

        HI all, Is there a way to write data(text data) to Linux directory using C#? or Help me with establishing connectivity with Linux using C# code. Regards, Yuva

        J Offline
        J Offline
        jschell
        wrote on last edited by
        #3

        File Transfer Protocol also known as FTP. The linux box runs a FTP server and the client box runs a FTP client.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups