Author Topic: write to specific line of txt file  (Read 5903 times)

0 Members and 1 Guest are viewing this topic.

Lee Mac

  • Seagull
  • Posts: 12926
  • London, England
Re: write to specific line of txt file
« Reply #15 on: January 21, 2013, 07:46:55 AM »
Lee, would using the setcfg/getcfg necessitate sharing the acad.cfg file?

I guess if the application is to be used across a network there would need to be a single acad.cfg file residing in a network support path; for such a simple task as the OP has described, (i.e. with minimal data), the setcfg/getcfg seemed a good solution without requiring extensive programming knowledge.

pBe

  • Bull Frog
  • Posts: 402
Re: write to specific line of txt file
« Reply #16 on: January 21, 2013, 08:59:59 AM »

example A-12345

and then it takes that number and writes it back to the file for when the next person goes to assign a number to a drawing he gets the next number in the series

example A-12346
....

Nice, I like the idea. 8)

andrew_nao

  • Guest
Re: write to specific line of txt file
« Reply #17 on: January 21, 2013, 10:41:20 AM »
Could always use XML, SQLite, or MS Access without too much extra work.  Allows for easier management of additional information, as well as specific item replacement.  Gotta watch the sequence of events when you have multiple users hitting up the data at the same time though.  If you have multiple concurrent users you pretty much have to institute a locking file (such as DWL files for DWG) unless you are working with a database system that supports indivdual record locking.
i often scratch my head while coding in lisp
thanks for the suggestion tho

andrew_nao

  • Guest
Re: write to specific line of txt file
« Reply #18 on: January 21, 2013, 10:45:31 AM »
i appreciate all the suggestions..
as soon as i have some type of working code ill share for critiquing