Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.


  Search this Thread
Old 06-07-2010, 11:39 PM   #1
LQ Newbie
Registered: Apr 2010
Posts: 13

Rep: Reputation: 1
Unhappy How to create txt file in driver code?

Use API functions (such as fopen, fputs and fclose) can create txt file easily. But if i want to create txt file in a driver file, how can i do?
Instead of fopen,fputs and fclose, are there other functions can be used in driver code?
Old 06-08-2010, 03:11 PM   #2
Senior Member
Registered: Apr 2009
Posts: 1,505

Rep: Reputation: 137Reputation: 137
You can use /proc file system API to create text file for driver.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to let MUTT create 10 TXT files of the last Emails? frenchn00b Linux - General 1 03-07-2010 03:31 AM
How do i create a .bin file for linux from my java source code ojerag Programming 4 01-04-2010 09:45 AM
Create 1 csv file from multiple txt files richmur Programming 10 09-03-2008 01:28 PM
how to parse info from a txt file using c++ code abhisheknayak Programming 8 11-23-2007 01:33 AM
How can read from file.txt C++ where can save this file(file.txt) to start reading sam_22 Programming 1 01-11-2007 05:11 PM > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 03:43 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration