473,811 Members | 1,881 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

FILE concepts in C

1 New Member
HI
I am a newbie to 'C' and embedded application . I have a code in which the input parameter is being assigned in two ways

(i) Runtime through user
(ii) parameter tile

the problem is, i can't give the runtime input as am a in need of creating a standalone product without user interaction.

the parameters in the parameter file is assigned as the input by "FILE" pointer concepts which is stored in some "D:\input \parameter.par" .
But, i could not store the parameter file in my kit memory and use "FILE" pointer concepts.
Is it possible for me to use "FILE" pointer concepts in my programming. If it is so how can i store the parameter.par file in the kit's memory.
I tried with some unsigned char * instead of "FILE" pointer but it works somewhat .


Help me in this regard,

aswini
Oct 17 '07 #1
1 4229
sicarie
4,677 Recognized Expert Moderator Specialist
Okay, I'm not entirely sure what you are asking, so I'm going to rephrase your question, please tell me if this is correct or not. You are trying to store a pathname in a file located at D:\input\parame ter.par, but are having difficulty reading the filename from there?

If you want this to be "Automatic" I would recommend storing the path to the file in your program as default, and then have your program check to see if it is running in automatic or interactive mode. (Then, if it is interactive, it prompts the user, but otherwise has the location all ready to go)
Oct 17 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
1799
by: ravinder | last post by:
I wanted to develop a multithreaded program using OO concepts on windows platform. Problem: I have to simulate two layers(similar to TCP/IP stack layers), and the layer functionality is of finite state machine type i.e after receiving any event(either after receiving message or any timer expiry), state change happens internal to layer. And there will be message transfer between two layers. My idea is to put layer specific data in the class and...
6
1401
by: enki | last post by:
I had read that you should use classes to represent concepts. How does this work and what kind of concepts should be reresented as classes.
3
1327
by: Robert | last post by:
I've been working with ASP.NET for about a year and I think I'm on the verge of "getting it." I suspect that if I came to understand a few key concepts it would all come together. One of those "key concepts" undoubtedly is the "pipeline" I see mentioned over and over again in this group. If one were to understand that, then the relationships amongst HTTP handlers, output caching, the Cache object, and order of page construction, etc would...
165
6937
by: Dieter | last post by:
Hi. In the snippet of code below, I'm trying to understand why when the struct dirent ** namelist is declared with "file" scope, I don't have a problem freeing the allocated memory. But when the struct is declared in main (block scope) it will segfault when passing namelist to freeFileNames().
52
7548
by: paytam | last post by:
Hi all Can anyone tell me how can I check that a file exist or no.I mean when you use this commands FILE *fp; if(!fp) //Could not open the file doen't show why it can not open it,may be the file doesn't exist.Now tell me what should I do! Thanks
3
1550
by: User1013 | last post by:
I have the Javascript definitive guide book but I'm hoping someone can tell me what "language concepts" are being employed by the following code, so that I can look up the right parts in the book: foo = { attrType : 'none', init : function(){ ..... snip... and ...
20
2606
by: W Karas | last post by:
Would the fear factor for concepts be slightly reduced if, instead of: concept C<typename T> { typename T::S; int T::mem(); int nonmem(); };
30
5505
by: Xah Lee | last post by:
The Concepts and Confusions of Prefix, Infix, Postfix and Fully Functional Notations Xah Lee, 2006-03-15 In LISP languages, they use a notation like “(+ 1 2)” to mean “1+2”. Likewise, they write “(if test this that)” to mean “if (test) {this} else {that}”. LISP codes are all of the form “(a b c ...)”, where the
1
2125
by: Swathika | last post by:
Hi, Sometimes, you never get chance to learn 'Advanced Design Concepts and Real-time Scenarios' from institutes or through book-learning. But, in my blog, I have gathered some of the amazing Design concepts and practical scenarios in J2EE. Design Concepts: http://strutsjavainterviewquestions.blogspot.com/2008/07/design-level-concepts-in-j2ee.html
0
9605
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10648
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10402
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10135
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6890
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5554
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4339
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3867
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3018
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.