Found 34494 Articles for Programming

What is the best IDE for Java besides Eclipse?

varma
Updated on 30-Jul-2019 22:30:20

204 Views

IntelliJ and NetBeans are the alternative IDE’s for Java development.

What is the difference between Object oriented programming and Object based programming?

Prabhas
Updated on 30-Jul-2019 22:30:20

15K+ Views

Many of us have a misconception that Java script is an object oriented language. But, the truth is Java Script is an Object Based Language. Object Based languages are different from Object Oriented Languages: Object Based Languages Object based languages supports the usage of object and encapsulation. They does not support inheritance or, polymorphism or, both. Object based languages does not supports built-in objects. Javascript, VB are the examples of object bases languages. Object Oriented Languages Object Oriented Languages supports all the features of Oops including inheritance and polymorphism. They support built-in objects. C#, Java, VB. Net ... Read More

How to concatenate two files into a new file using Python?

Rajendra Dharmkar
Updated on 17-Jul-2023 14:50:30

9K+ Views

In Python, concatenation is a process that refers to combining two or more strings, lists, or such sequence-like objects into a single object. The concatenation operation when performed is denoted by using the "+" operator. Concatenating two files into a single file can be a useful process when you want to combine the contents of several files. If you want to merge data from different sources or simply create a consolidated file with aggregated data, Python provides a simple no-frills method to accomplish this task. In this article, we will explore different ways of concatenating two files into a ... Read More

What are the prerequisites for learning Java?

vanithasree
Updated on 30-Jul-2019 22:30:20

1K+ Views

In fact, you can directly start learning Java without any prior knowledge of programming language. But, the syntax in Java is similar to the syntax of the C programming language, therefore, Knowing C language helps to get hold of Java quickly. Having introduced to object-oriented principles before starting Java, also helps in the understanding of the language so, having an idea on object-oriented languages such as C++ also helps. In short, if you know C or C++ it will be a little bit easier to cope with Java technology.

How to merge multiple files into a new file using Python?

Sarika Singh
Updated on 18-Aug-2022 08:00:00

12K+ Views

Python makes it simple to create new files, read existing files, append data, or replace data in existing files. With the aid of a few open-source and third-party libraries, it can manage practically all of the file types that are currently supported. We must iterate through all the necessary files, collect their data, and then add it to a new file in order to concatenate several files into a single file. This article demonstrates how to use Python to concatenate multiple files into a single file. Using Loops A list of filenames or file paths to the necessary python files ... Read More

How to check if a file exists or not using Python?

Sarika Singh
Updated on 18-Aug-2022 07:56:56

790 Views

You might wish to perform a specific action in a Python script only if a file or directory is present or not. For instance, you might wish to read from or write to a configuration file, or only create the file if it doesn't already exist There are many different ways to check if a file exists and figure out what kind of file it is in Python. Using OS Module An inbuilt Python module called Os has tools for dealing with the operating system. We can access operating system features by using os. In Python, os.path is a sub-module ... Read More

How to change the owner of a directory using Python?

Sarika Singh
Updated on 18-Aug-2022 07:43:20

3K+ Views

By utilising the pwd, grp, and os modules, you can modify the owner of a file or directory. To obtain the user ID from the user name, to obtain the group ID from the group name string, and to modify the owner, one uses the uid module. Following are the methods to change the owner of a directory using Python − Using os.chown() Method To change the owner and group id of the given path to the specified numeric owner id (UID) and group id(GID), use Python's os.chown() method. Syntax os.chown(filepath, uid, gid, *, dir_fd = None, follow_symlinks = True) ... Read More

How to change the permission of a directory using Python?

Rajendra Dharmkar
Updated on 03-Oct-2019 05:53:16

6K+ Views

On a platform with the chmod command available, you could call the chmod command like this:>>> import subprocess >>> subprocess.call(['chmod', '-R', '+w', 'my_folder'])If you want to use the os module, you'll have to recursively write it:Using os: import os def change_permissions_recursive(path, mode):     for root, dirs, files in os.walk(path, topdown=False):         for dir in [os.path.join(root, d) for d in dirs]:             os.chmod(dir, mode)     for file in [os.path.join(root, f) for f in files]:             os.chmod(file, mode) change_permissions_recursive('my_folder', 0o777) This will change the permissions of my_folder, all ... Read More

How to change the permission of a file using Python?

Sarika Singh
Updated on 18-Aug-2022 07:28:49

18K+ Views

The user whose actions are allowed on a file are governed by its file permissions. A file's permissions for reading, writing, and executing are modified when the file's permissions are changed. This article will cover how to change a file's permission in Python. Using os.chmod() Method To modify the permissions of a file, use the os.chmod () method. Syntax Following is the syntax for os.chmod() method − os.chmod(path, mode) Where, path represents the path of the file and mode contains different values as explained below. There is no return value obtained in this method. Os.chmod() modes Following are the ... Read More

Creating xls file in ASP.NET to be imported to SAP

John SAP
Updated on 13-Dec-2019 06:49:06

92 Views

Note that in SAP system, you can import Arrays via a Web Service or using .NET Connector. It shouldn’t be an xls file when you structure the data properly.To import xls file in SAP, you can refer this link-  SAP linkYou can also upload an excel file into internal table using an ABAP code: SAP link

Advertisements