Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Practical C Programming

You're reading from   Practical C Programming Solutions for modern C developers to create efficient and well-structured programs

Arrow left icon
Product type Paperback
Published in Feb 2020
Publisher Packt
ISBN-13 9781838641108
Length 616 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
 Harwani Harwani
Author Profile Icon Harwani
Harwani
Arrow right icon
View More author details
Toc

Table of Contents (9) Chapters Close

Preface 1. Section 1: Kali Linux – Not Just for Penetration Testing
2. Chapter 1: Packt Chapter (H1 – Chapter) FREE CHAPTER 3. Chapter 2: Installing Kali Linux 4. Section 2: Forensic Fundamentals and Best Practices
5. Chapter 3: Understanding Filesystems and Storage Media 6. Chapter 4: Incident Response and Data Acquisition 7. Assessments 8. Other Books You May Enjoy

Chapter 13

  1. The most important classes in the System.IO namespace for working with system objects are Path for paths, File and FileInfo for files, and Directory and DirectoryInfo for directories.
  2. The preferred way of concatenating paths is by using the Path.Combine() static method.
  3. The path of the temporary folder of the current user can be retrieved with the Path.GetTempPath() static method.
  4. The File and FileInfo classes provide similar functionalities but File is a static class and FileInfo is a non-static class. Likewise, Directory is a static class and DirectoryInfo is a non-static class, although their functionalities are similar.
  5. To create directories, you can use the Create() and CreateSubdirectory() methods. The former creates a directory when its direct parent exists. The latter creates a subdirectory and all the other subdirectories in a hierarchy up to the root, if necessary. To enumerate directories, use the EnumerateDirectories() method, which retrieves...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime
Visually different images