Tutorial by Topics: file

If you commit sensitive data, such as a password or SSH key into a Git repository, you can remove it from the history. To entirely remove unwanted files from a repository's history you can use either the git filter-branch command or the BFG Repo-Cleaner. Tell your collaborators to rebase, ...
While some existing JavaScript libraries have type definition files, there are many that don't. TypeScript offers a couple patterns to handle missing declarations.
How to import data from an existing Excel or CSV file.
ConfigSlurper allows you to use another groovy script as a config file for your script instead of using, for example, a .properties file. You can do interesting configurations with typed properties and you don't need to convert from string. You can use lists, maps or a value based on some calcul...
configure_file is a CMake function for copying a file to another location and modify its contents. This function is very useful for generating configuration files with paths, custom variables, using a generic template. Copy a file to another location and modify its contents. configure_file(&l...
When running VbScript in Windows shell, there is no built in function to include a file, therefore, to organize your code in different files you'll need to create a method to do that. A few things to keep in mind when using the IncludeFile(p_Path) method : There is no limitation of file typ...
.bash_profile, .bash_login, .bashrc, and .profile all do pretty much the same thing: set up and define functions, variables, and the sorts. The main difference is that .bashrc is called at the opening of a non-login but interactive window, and .bash_profile and the others are called for a login she...
From Adminer management tool it's has export to csv file option for mysql database But not available for postgresql database. Here I will show the command to export CSV for postgresql database.
In this example, lets say we have many product CSV files in a folder. Each CSV file need to upload our database from our console write a command. Run the following command in a new or existing project to create this model.
Reading and writing files in Android are not different from reading and writing files in standard Java. Same java.io package can be used. However, there is some specific related to the folders where you are allowed to write, permissions in general and MTP work arounds. Android provides means f...
Using SSIS to extract data from a CSV file and insert into a SQL Server table
There is a built in easy way to read files in binary within VBA, however it has a restriction of 2GB (2,147,483,647 bytes - max of Long data type). As technology evolves, this 2GB limit is easily breached. e.g. an ISO image of Operating System install DVD disc. Microsoft does provide a way to overco...
This section shows basic code for reading, sub-setting and writing external data files using pandas.
Small, simple csv files can be built using just a text editor. Reading and writing them, or otherwise processing their contents is done more efficiently using the products available for one's language or systems of choice.
The Ada standard library provides for I/O of traditional files of text or binary data, as well as I/O of streamed files. Files of binary data will be sequences of values of a type, while stream files can be sequences of values of possibly different types. To read and write elements of different ...
Some times you may need to create a delimited text file for various uses. The following example is one of many ways to help you do that. I have used a pipe ("|") for my delimiter, to change that just change the assignment of the Sep variable. In my example I dump the recordset to an array,...

Page 8 of 11