Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Using the Lazarus IDE
»
Editor
»
Read and Write Text File
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Lazarus Bugfix Release 4....
by
wp
[
Today
at 04:47:58 pm]
LRS Explorer
by
wp
[
Today
at 04:02:45 pm]
Which Linux version
by
cdbc
[
Today
at 03:47:53 pm]
Cross platform DirectoryW...
by
LemonParty
[
Today
at 03:45:45 pm]
TDWEdit
by
docno
[
Today
at 03:35:02 pm]
BS Controls – Silly Compo...
by
Xenno
[
Today
at 02:30:43 pm]
Separators in the compone...
by
JuhaManninen
[
Today
at 01:28:05 pm]
Lazarus, Ubuntu Pi 4 and ...
by
Thaddy
[
Today
at 12:07:04 pm]
Clean up and build
by
CM630
[
Today
at 11:20:21 am]
Unleashed Pascal (async/a...
by
creaothceann
[
Today
at 11:11:47 am]
AsyncProcess not firing O...
by
Martin_fr
[
Today
at 11:05:52 am]
Is it possible to communi...
by
Xor-el
[
Today
at 10:28:59 am]
[Qt5/Qt6] JPSupport-Qt: J...
by
shortcut
[
Today
at 09:10:24 am]
How to avoid duplicates i...
by
mig-31
[August 13, 2026, 05:35:46 pm]
QGradientTrackPanel: A Fu...
by
Ed78z
[August 13, 2026, 04:49:24 pm]
Memory location
by
Thaddy
[August 13, 2026, 04:01:56 pm]
TurboBird IBX
by
laguna
[August 13, 2026, 03:55:51 pm]
TlsLib4Pascal
by
Xor-el
[August 13, 2026, 03:06:13 pm]
MR - DebuggerIntf for ter...
by
Martin_fr
[August 13, 2026, 12:54:22 pm]
var vs out (including "co...
by
kupferstecher
[August 13, 2026, 12:49:22 pm]
AArch64, load a constant ...
by
LemonParty
[August 13, 2026, 12:31:06 pm]
Lazarus undead repository...
by
Dankan1890
[August 13, 2026, 10:28:54 am]
[RE-SOLVED] Splitting an ...
by
paweld
[August 13, 2026, 09:52:15 am]
Why does Free Pascal use ...
by
MarkMLl
[August 13, 2026, 09:30:40 am]
Extended and XML Frames o...
by
matthius
[August 13, 2026, 01:01:09 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Read and Write Text File (Read 9224 times)
Isara
Guest
Read and Write Text File
«
on:
October 21, 2004, 09:43:22 am »
How can I read and write text file by using Lazarus?
I'm a new user.
Thank you. :cry:
Logged
Marc
Administrator
Hero Member
Posts: 2706
Read and Write Text File
«
Reply #1 on:
October 21, 2004, 10:43:35 am »
THis is more a generic pascal question than a Lazarus, but anyhow...
There are (at least) 3 ways, for more details, look in the fpc manuals
1) assign, reset/append
2) TFileStream
3) TStringList.
Logged
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the
bug tracker
Anonymous
Guest
Read and Write Text File
«
Reply #2 on:
October 25, 2004, 06:08:12 am »
Thank you.
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Using the Lazarus IDE
»
Editor
»
Read and Write Text File
TinyPortal
© 2005-2018