The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A Question on File-Options
Author Message
Shidhun
Journeyman
*

Posts: 59
Likes Given: 5
Likes Received: 3 in 3 posts
Joined: Jul 2012
Reputation: 1



Post: #1
A Question on File-Options
Hello,

maybe someone can help me with this.

I have a separate file with many Informations on Items. On every line there is a string that contains several Informations on Items, like ID/Color and so on.

So, my Question is. How do i delete a specific fileline in this file.

I know how to read every line i want, and how to resolve the informations etc etc.

The thing is, in some situations i need to alter a Fileline or to to remove it completely. Is there a way to do it, or do i need to create a new file via writeline, without the string-informations i don't need anymore.

An example:
I have a Gump that contains the informations to 50 Items. It is easy to do this via Filelines/Readline. Lets say now, that i don't need the Information on Line 47 any more. How do i delete Line 47 without loosing the Informations on the other 49 Lines, or do i need to use a workaround with storing every line in a local, deleting the original file, and than creating a new one without "local 47"
02-12-2013 01:16 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
A Question on File-Options - Shidhun - 02-12-2013 01:16 AM
RE: A Question on File-Options - Mordaunt - 02-12-2013, 01:34 AM
RE: A Question on File-Options - Shidhun - 02-12-2013, 01:57 AM
RE: A Question on File-Options - Mordaunt - 02-12-2013, 02:04 AM
RE: A Question on File-Options - Shidhun - 02-12-2013, 08:20 PM
RE: A Question on File-Options - RanXerox - 02-15-2013, 05:00 AM
RE: A Question on File-Options - Mordaunt - 02-15-2013, 11:47 PM
RE: A Question on File-Options - darksun84 - 02-15-2013, 11:51 PM
RE: A Question on File-Options - Shidhun - 03-04-2013, 06:12 PM
RE: A Question on File-Options - Ben - 03-05-2013, 08:55 AM

Forum Jump:


User(s) browsing this thread: 3 Guest(s)