How do I send a file .txt or .evt between two computers using TCP/IP
5 ビュー (過去 30 日間)
古いコメントを表示
I need send files but just found how tranfer cha.
0 件のコメント
回答 (4 件)
Walter Roberson
2015 年 8 月 1 日
file_as_char = fileread('YourFile.evt');
Now file_as_char is char that can be sent.
0 件のコメント
Vanessa ricardo
2015 年 8 月 1 日
3 件のコメント
Cedric
2015 年 8 月 1 日
編集済み: Cedric
2015 年 8 月 1 日
But at this stage I have to ask you how serious your project is, how large are the files that you need to transfer, and why you need to manage file transfer from MATLAB. Because writing a solid/stable client-server system is complicated.
For a small project, I would play with TCPIP etc, because it is "fun" to learn a bit how to deal with these things. If I had to build a solid/stable solution though, I would install an FTP server or a Web server, or anything which supports protocols for transferring files, and I would use this from MATLAB. If one machine had an FTP server for example, I would use
Then I would just test the presence of new files, or use TCPIP for signaling/synchronizing transfers, and let the FTP client/server, WGET, etc, manage file transfers properly.
Vanessa ricardo
2015 年 8 月 1 日
5 件のコメント
Walter Roberson
2015 年 8 月 2 日
Is this to solve a practical problem, or is it a university assignment? If it is to solve a practical problem, then do not use MATLAB for this: use one of the existing tools such as kermit or hyperterm.
参考
カテゴリ
Help Center および File Exchange で Data Import and Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!