Abstract
In this chapter, we focus on file processing, i.e., processing files for given purposes, which can be considered as data processing. Specifically, we write and analyze programs to investigate and modify files. As opposed to many other problems in computer science, file processing is usually very dependent on the syntax of the programming language.
Nevertheless, some common strategies need to be developed to investigate, process, and modify files. Some languages, such as R, provide many higher-level functions that can easily be used to perform complex input/output operations, whereas others may need more programmer efforts. In this chapter, we attack some basic problems, whose solutions can easily be performed using different programming languages. In general, we consider files that contain numbers or some texts that are investigated, processed, and modified. We also consider programs with multiple input and output files, whose contents need to be processed quickly for efficient programming.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2013 Springer-Verlag London
About this chapter
Cite this chapter
Ergül, Ö. (2013). File Processing. In: Guide to Programming and Algorithms Using R. Springer, London. https://doi.org/10.1007/978-1-4471-5328-3_8
Download citation
DOI: https://doi.org/10.1007/978-1-4471-5328-3_8
Publisher Name: Springer, London
Print ISBN: 978-1-4471-5327-6
Online ISBN: 978-1-4471-5328-3
eBook Packages: Computer ScienceComputer Science (R0)