|
by: Mike Maxwell |
last post by:
When I invoke readline() in a for loop, why does it return a series of
one-char strings, rather than the full line?
>>> for sL in sys.stdin.readline(): print sL
....
abc
a
b
c
|
by: Steve Bright |
last post by:
In an ASP page, I am using the FileSystemObject OpenTextFile method to
initiate a TextStream object.
In some files I have long lines and it appears that these are being
truncated to 2048 characters. This truncation occurs whether I use the
ReadLine method or use a loop of Read(1) while !AtEndOfLine. After the
supposed line end the next read...
|
by: alberto |
last post by:
In this code for a console application:
int n;
n = Console.Read();
Console.WriteLine(n);
Console.ReadLine();
|
by: Piyush |
last post by:
Hi,
I am using the readline method in an application. The problem that creeps up
is that for some particular line of text, even though it is < 512 characters,
this method returns text only from the 130th character onwards or
thereabouts. The file in question that I'm scanning is a txt format of stored
procedures.
Regards,
Piyush
|
by: AspProgrammer |
last post by:
Hello
I'm writing a web application where i upload a file. then i open the
file use textstream. At the end of my application i close it by using
TextStream.close. But when i try to delete the file on my hard disk i
keep getting the error "file is being used by other program or person".
The only solution then is to restart iis and then...
|
|
by: Christian Convey |
last post by:
Hello,
I've got a program that (ideally) perpetually monitors sys.stdin for
lines of text. As soon as a line comes in, my program takes some
action.
The problem is, it seems like a very large amount of data must
accumulate on sys.stdin before even my first invocation of readline()
returns. This delay prevents my program from being...
|
by: Jan |
last post by:
Hello there,
I've got a strange problem using the readline method in vb2005 for
reading the serial port.
If I use the readchar method I can receive one character from
serialport. This is the code I use:
Function ReceiveSerialData() As String
' Receive strings from a serial port.
Dim returnStr As String = ""
|
by: Arthur |
last post by:
Given a "linemess.py" file with inconsistent line ending:
line 1 \r
\r\n
line \n
tokenized as per:
import tokenize
f=open('linemess.py','r')
|
by: Horta |
last post by:
Hi folks,
Sometimes, when I do an os.popen*(), the process executed by the
command hangs, and the script stops forever on the readline()/
readlines() calls. I found that I can use select, but I'm thinking...
if, after a sellect() call returns, the stdout (for example) has more
than one line? or if it has just some characters, no newline, and...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
|
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
|