USB隐藏编程 [英] usb hid programming

查看:111
本文介绍了USB隐藏编程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我想知道如何根据当月的当前日期创建文件,并且需要将鼠标数据附加到该文件中.

我创建了一个类似`date +%d-%m-%Y`.txt
的文件 我能够成功创建文件.

我可以使用libusb API从鼠标获取数据.

请帮助我如何将鼠标数据附加到文件(20-10-2020.txt)中.

如果我们创建这样的文件,是否可以将数据追加到文件中?

请给我一些建议.

谢谢.

Hello,

I''d like to know how to create a file depending on current day of the month and I need to append the data from mouse into that file.

I created a file like this `date +%d-%m-%Y`.txt
I am able to create the file successfully.

I am able to get the data from mouse using libusb API.

Please help me as to how to append the data from mouse into file (20-10-2020.txt).

Is it possible to append data into the file if we create a file like this?

Please give me some suggestions regarding this.

thank you.

推荐答案

打开文件进行写入,最后查找并写入新数据.
Open the file for writing, seek to the end and write your new data.


这篇关于USB隐藏编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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