Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » write to /dev/something file
write to /dev/something file [message #23081] Wed, 16 September 2009 07:44 Go to next message
qwerty is currently offline  qwerty
Messages: 130
Registered: May 2006
Experienced Member
how to open/write/close file in /dev directory(which I have created using some loopbacks methods and works with other programs).

need to send to that file chunk of bytes.

thank you

[Updated on: Wed, 16 September 2009 08:11]

Report message to a moderator

Re: write to /dev/something file [message #23084 is a reply to message #23081] Wed, 16 September 2009 09:32 Go to previous messageGo to next message
mr_ped is currently offline  mr_ped
Messages: 825
Registered: November 2005
Location: Czech Republic - Praha
Experienced Contributor
fopen/fwrite/fclose should work?
Re: write to /dev/something file [message #23097 is a reply to message #23084] Thu, 17 September 2009 07:15 Go to previous messageGo to next message
qwerty is currently offline  qwerty
Messages: 130
Registered: May 2006
Experienced Member
yes, but I meant using pure upp
Re: write to /dev/something file [message #23112 is a reply to message #23097] Thu, 17 September 2009 17:25 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
qwerty wrote on Thu, 17 September 2009 01:15

yes, but I meant using pure upp


What is "pure upp" ? Smile

Obviously, using /dev is Win32 incompatible, there could come no help from crossplatform toolkit...
Re: write to /dev/something file [message #23136 is a reply to message #23081] Fri, 18 September 2009 08:33 Go to previous messageGo to next message
mr_ped is currently offline  mr_ped
Messages: 825
Registered: November 2005
Location: Czech Republic - Praha
Experienced Contributor
I would say the "upp spirit" is:
- freedom, do whatever you think is appropriate
- keeping things as simple as possible, without additional cruft
- refactoring whenever you feel you can do that old thing lot more better this time
- using platform dependent code only where it really pays off, otherwise strictly evading platform API and keeping it portable.

In this sense I think little "driver" class with fopen/fwrite/fclose to handle that device is very good fit.
Re: write to /dev/something file [message #23147 is a reply to message #23136] Fri, 18 September 2009 18:39 Go to previous message
qwerty is currently offline  qwerty
Messages: 130
Registered: May 2006
Experienced Member
ok, to LUZR: as close as much I can go Smile

andI am sorry, I have kind a weird question, but I am rather analytics than good programmer.

thank you both
Previous Topic: Play sound
Next Topic: upp 1590 compile error
Goto Forum:
  


Current Time: Thu Mar 28 11:39:58 CET 2024

Total time taken to generate the page: 0.00835 seconds