![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hello,
i'm trying to write a line to a certain position within a file.My plan was to use FileRead to get to the position i'm looking for and then FileWrite to change the content of this line. This doesn't work, because i cannot open a file for read & write access at the same time.I saw there is also FileGet and that stuff with cRandom access but i would like to stay with line based string access and not counting bytes in the file. How can i achieve this..? cheers TWELVE |
|
||||
|
The easiest way i can think off, is to read and load the whole file to a table, apend the data you want, were you want it, and them save the file again overwriting the existing one...
__________________
Paulo Gomes Porto, Portugal PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD PPC: Qtek9000, 1GB SD DLL Version Listing |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Different Line Types | ceaser | Code Samples & Tips | 4 | 08-20-2008 02:39 PM |
| Travian off-line stats... | Cableguy | Questions & Help Needed | 3 | 07-25-2008 05:55 AM |
| Error at line 0? | Mistrel | Questions & Help Needed | 9 | 11-04-2007 08:40 PM |
| How to draw a line? | RandomCoder | Questions & Help Needed | 3 | 08-24-2007 10:11 PM |
| FileWrite with Danish letters æøå | Lasse | Questions & Help Needed | 1 | 05-17-2007 03:55 PM |