LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 06-07-2010, 11:39 PM   #1
ligang
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?
Thanks!!
 
Old 06-08-2010, 03:11 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,028

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


Reply


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


All times are GMT -5. The time now is 09:50 AM.

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