Remember
Register
Home
/
Support
/
Support Forum
/
Ffunction that the contents of a file deletes ?
Digi Forum
All Activity
Q&A
Questions
Hot!
Unanswered
Tags
Categories
Users
Ask a Question
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.
All categories
Digi Remote Manager
(387)
Python
(1,017)
RF Solutions and XBee
(8,439)
Digi TransPort
(789)
Digi Connect Cellular
(448)
DAL
(5)
Embedded Devices
(4,171)
Android
(45)
NET+OS
(2,445)
Linux
(962)
Windows CE
(86)
Plug N' Play
(466)
Google Coral
(2)
Rabbit
(3,199)
Console Servers
(354)
Modbus and Industrial Automation
(246)
Realport
(603)
Serial Servers
(837)
Satellite Modules
(25)
USB
(1,273)
Serial Cards
(715)
ConnectPort Display
(58)
Feedback/Wish List
(93)
Other/Legacy
(377)
Ffunction that the contents of a file deletes ?
0
votes
Hi Digi community,
Is there a function that the contents of a file deletes? I want to create a file and deletes the content in fixed intervals. Then I will store new data in the file !
Thank you.
Marcus
filesystem
asked
Dec 13, 2007
in
NET+OS
by
mentzer
New to the Community
(
25
points)
recategorized
Dec 18, 2013
by
tuxembb
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1 Answer
0
votes
AFAIK, there is no way to truncate a file in standard C file I/O. Best bet is to remove() the file and then recreate it. You could look at the lower-level NAFS_ functions but I don't think there is any way to truncate with them either.
answered
Dec 19, 2007
by
harding
New to the Community
(
14
points)
Please
log in
or
register
to add a comment.
...