This is a small program i have written to read a contents from a INPUT FILE containing (+1000 Lines ) and writing simultaneously to another file. ( it works fine )
1.---- QUESTION:-
----...
hi... can anybody give me some sample codes for reading a text file line by line?
I need to make a program to read the content of the file and to extract info in certain lines
thank u
Hi all,
How could i create a folder using python if the folder name is provided by the user. and check if the folder already exists or not
regards,
Freedom
Hi all,
Im trying to build a custom SSh client in python using sockets in windows.
below is a snippet of my function in the code
#!/usr/bin/env python
import os
import sys
from socket ...
Hi,
I have a address "Santa Mora, AZ 86444
I want to substring this string into city, state and zip but what is the best way to do this?
Do I use partition, rfind, or or split?
Thanks
Jamie
I have been searching around for a way to compile my python scripts beyon .pyc or .pyo files mainly because my company would like to distribute some applications however those byte code files ...
I am looking for an UDP broadcast client/server example in Python. Any hints?
Hi,
I am writing a python app using Tkinter for buttons and graphics and having trouble getting a timer working, what I need is a sample app that has three buttons and a label.
[start ti...
Hello,
I am very new to python and am trying to understand the below code to possibly chop it up and use it to my advantage it used in ESRI ArcMAP 9.1
Would someone please annotate the below...
Hello Experts,
I would like to know how to change a file creation/modification date/time using Python. This should work on Windows.
Thanks in advance...
I am trying to run the script but It ends with the following error. I am also pasting the script. Thanks.
Checking for the existence of a NodeSync MBean on node xxxxNode1
Invoking synchr...
Hi Everyone,
I have installed yum on Redhat 7.3 but when ever I do yum check-update or yum update I get the error below.I have googled this error but cant find a proper solution to it.
Tra...
This should be fairly easy but I can't get things to work correctly. Basically I am just trying to launch a command line argument from python and read the standard output. I first tried:
re...
#include <iostream>
using namespace std;
int main()
{
int a;
cout << "please input a number" << endl;
cin >> a;
cout << "this is the number " << a << endl;
...
I'm trying to have python read in a file and put each line into a list, then print out each list, but stop at a command line argument supplied number
so file is 30 lines long, argument is 2...
I would know how to access environment variables in python. Please advise.
I want to connect to a web services server, send a request, and read the response.
I have a Java program that does this but am getting nowhere with httplib.
This appears to work:
import h...
I have a file which takes as input a database called test.db and outputs a comma delimited file. I want to make it tab delimited I tried just converting all the commas to tabs after outputing ...
I have to write a script to monitor a mysql connection. Before I do this I want to test if my machine can access Internet by pinging the DNS server of my provider. I have seen very complicated...
Hi Experts,
How can I use Python Script instead of VBA Script in Excel or Word Application?.
Pls Explain with an Example.
Cheers,
Ragavan.
I've built a command-line build system based on the Python-based tool Scons. Since all the workstations running Scons have to have Python installed, I'd prefer to just do the few driver script...
Ok, I'm a very-well-versed web developer in PHP and more. I've got a new job concentrating on front-end coding, but I have to cross over into some back-end as well, but based in Python not PH...
I am new to python (perl guy) and need to know how to launch a python script (or several python scripts) from within another python script and continue with the logic flow of the parent python...
I've been requested to put a python script in cron. Currently in real time the user changes to the directory that has the script and launches the script which works on data in that directory....
Hello,
I need to find a way to move the mouse cursor even if my application isn't focused, and i need a crossplateform code, it must at least work under Windows and Linux (with the same bas...