Skip to content

Commit

Permalink
Changed gists for internal references in the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Hombre-x committed Aug 24, 2024
1 parent a7fde81 commit 909df39
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions docs/tutorial/file_handling.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def createFileAndDirectories(path: Path): IO[Unit] = ???

@:@

[See possible implementation](https://gist.github.com/00c59408740e8b52838ff07fc9154c12.git)
[See possible implementation](../examples/solutions.md#create-a-file)


## Deleting here and there
Expand Down Expand Up @@ -355,7 +355,7 @@ def deleteIfChubby(path: Path, threshold: Long): IO[Boolean] = ???

@:@

[See possible implementation](https://gist.github.com/a4f2ef825f8b3425f41a6069b13a08c0.git)
[See possible implementation](../examples/solutions.md#deleting-here-and-there)

## Using temporary files

Expand Down Expand Up @@ -470,4 +470,4 @@ def makeTempFile: Resource[IO, Path] = ???
def makeTempDirectory: Resource[IO, Path] = ???
```

[See possible implementations](https://gist.github.com/17aa677269ff0f94af0bd2a557f548e1.git)
[See possible implementations](../examples/solutions.md#using-temporary-files)
7 changes: 3 additions & 4 deletions docs/tutorial/reading_writing.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

In this section, we will guide you through the process of opening and extracting information from files using our simple, intuitive API. Whether you are working with text, binary, or other formats, you will find the tools you need to seamlessly integrate file reading into your Scala project. Let us dive in and unlock the power of data stored in files!

**Important:** To avoid tutorial hell, we recommend doing a really small project while you read this tutorial to place acquired knowledge into practice. It does not have to be fancy, but it should tap into your curiosity and challenge you just a little.

## Reading and printing a file

Expand Down Expand Up @@ -153,7 +152,7 @@ def run: IO[Unit] =
...
yield ()
```
[See solution](https://gist.github.com/f8cf952fd5f7341ef698dfe825cfca93.git)
[See solution](../examples/solutions.md#reading-and-printing-a-file)

## Writing and modifying the contents of a file

Expand Down Expand Up @@ -213,7 +212,7 @@ Be aware that this will overwrite the contents of the file. So be careful not to

Try loading the contents of two different files, concatenating them, and saving the result to a third location. How would you do it?

[See possible solution](https://gist.github.com/99880af9b051b15f8adace7fe7aee2e3.git)
[See possible solution](../examples/solutions.md#writing-and-modifying-the-contents-of-a-file)

## Working line by line

Expand Down Expand Up @@ -338,4 +337,4 @@ Is but a dream within a dream.

How would you do this? (hint: use `writeLines`).

[See possible solution](https://gist.github.com/eaf4e550a90c355b9698f51c8311eeff.git)
[See possible solution](../examples/solutions.md#working-line-by-line)

0 comments on commit 909df39

Please sign in to comment.