jhoni rahmad wrote:
> Dear C-prog,
> 
> i'm developing software for barcode software, now i'm making software for PDT 
> CASIO DT930 (Portable data terminal). I get problem form my coding, i want to 
> take value from a  record. This is  example code :
> 
> location         code                          qty 
> 111              123456789                   12
> 102              234567890                    4
> 201              222222221                    1
> 
> 1. it in text file. I want get qty from record using a search key with value  
>   "123456789"
> 
> 2. how to update that data

It looks like you have a fixed record length of sorts.  fopen() the file 
in "r+b" mode.  fread() each fixed record into memory.  Once you find 
the record of interest, use fseek() with the SEEK_CUR option to seek 
backwards one record.  Perform an update using fwrite().


> i'm include my source code here
> 
> [Non-text portions of this message have been removed]
(i.e. most likely you attached your source code to your e-mail)

Due to several historical incidents involving computer viruses on 
c-prog, the group-wide policy of disallowing attachments to messages was 
instantiated by the c-prog group owner, Thomas Hruska (me).  The 
simplest workaround to not having attachments is to just copy and paste 
the code directly into an e-mail.  Doing it that way helps keep the 
conversation inline and actually encourages more responses from group 
members.  Therefore, for garnering high-quality, timely responses from 
group members, it is in your best interest to use copy and paste.

Some mail clients have difficulty transporting C/C++ code over the 
Internet.  Most clients that have problems are webmail-oriented.  The 
easiest and most friendly way to interact with c-prog is to use a 
dedicated e-mail client such as Outlook or Thunderbird and set your 
c-prog group settings to individual e-mails.  Most webmail providers 
have instructions for setting up various popular dedicated e-mail clients.

Additionally, unlike your personal e-mail, you have to contend with 
thousands of other users who are using all sorts of e-mail and webmail 
clients.  If you set your outgoing e-mails to be plain-text and use 
bottom posting for your replies, your e-mails will have a higher level 
of readership than those who top-post and use HTML/Word e-mail.

Should you still feel the need to upload a file, the c-prog website has 
a 'Files' section that periodically gets cleared out to make room for 
more files.  You may upload your file there and reference it in your 
e-mails.  Just be sure to specify which file it is you want people to be 
looking at in the e-mail.  This approach garners fewer responses.  Fewer 
people will put forth the significant effort necessary to view the file. 
  Also, due to the nature of computer viruses, people will generally 
only open plain-text files instead of Word documents.  Uploading a Word 
document is a guaranteed method of not getting any response.


-- 
Thomas Hruska
CubicleSoft President
Ph: 517-803-4197

*NEW* MyTaskFocus 1.1
Get on task.  Stay on task.

http://www.CubicleSoft.com/MyTaskFocus/

Reply via email to