Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

PHP File Handling with PHP Parsing Specific Formats Conclusion

Kole Lleshaj
Kole Lleshaj
2,091 Points

But.. How do you delete rows/people in CSV?

I've worked with CSV files before, but i never managed to delete a row, or the "right" row in a CSV file.

1 Answer

Steven Parker
Steven Parker
220,415 Points

CSV files are just plain text, so you can delete a row using any text editor.

Or did you want to know how to do it with some particular tool?

Kole Lleshaj
Kole Lleshaj
2,091 Points

Well, more like, how to delete a specific row in the file. (With PHP ofcourse)!